Good things happen because God is merciful. Bad things happen because people do bad stuff. By the way, there's no such thing a a person who is truly "good".
Bad things happen because bad things happen. There is no karma, and no such thing as a person who is truly "bad", either. I believe that under your religion system, i would be filed as practically satanic.