Why do horrible things happen to faithful people?
The religious run a protection racket. The key thing about that is that no actual protection is offered, only threats.
Warning: anyone who tells that really, really stupid story about a man in a flood praying for rescue will be disemvoweled. It’s a stupid story that makes excuses for the inaction of their deity, and I’ve heard it a few hundred times too often.