The “just world fallacy” is the belief that a person always gets what they deserve in life.
If a person behaves as a good and moral person, then only good things will happen to them. And if a person behaves as a bad and immoral person, then only bad things will happen to them.
Commonly, the belief in the “just world fallacy” is often paired together with the belief in a God or divine order in the universe. For example, often you’ll see people justify a natural disaster destroying a town or city as God’s way of punishing them for wrong-doing.
Or when people find something going wrong in their own personal life, they will look to the sky and think, “What did I do to deserve this?” But the truth is that sometimes bad things happen to good people, for no good reason.
People don’t always get what they deserve, and this is a part of reality that we need to learn to accept.