There is an important idea in psychology: The 'just world theory,' which says that it is very important for us to convince ourselves that the world is just and things happen for a reason. That there is some elemental fairness in everything, which creates the illusion of justice.
Malcolm Gladwell