Just-World Phenomenon
The just-world phenomenon is the tendency for people to believe that the world is just and that people therefore get what they deserve and deserve what they get. If you have this belief, and something good happens to you, you may conclude that the world is just because you are a good person and so good things happen to you. In the same way, when you see something bad happen to someone else, you may conclude that they did something to bring on this bad event. Otherwise, it would not have occurred since the world is a just place.