Shit happens, it always has and it always will
That pretty much summarizes the correct answer. Bad things as well as good things happen because life have a random factor we cannot control. It doesn't matter if there is a god or not, or if we are good or bad people, the random factor will still be there, making random things happen.
yeah that is true also @dedicatedguy, that is why acceptance is so important. Thank you for dropping by xx