Why is it that good things happen to bad people and bad things happen to good people?

Because the world hates the good.

From the greater sense of things, it makes the most sense. Think about it. The "bad" people are insecure, weak, hardened, or fearful. So there is a chance goodness might help soften them up and help them see the light. The "good" people need to be tested and can stand to grow some more. The "bad" things should not shake them if they are really good inside, and such things will only serve to make them more firm in their convictions and more of what they already are. Gold is purified using extreme heat.