The answer is Fundamental Attribution Bias
When you play the role as the observer, we tend to make this FAE or the so called Fundamental attribution bias, sometimes called correspondence bias or attribution effect. Is the tendency to explain someone's behavior based on internal factor, but before that you should first have a solid understanding of attribution theory.