God allows bad things to happen. He does not make them happen.
More often than not, when bad things happen, they are the results of our actions or in-actions, (and our knee-jerk reaction is to blame God).
God allows these things to happen to serve His own purpose in His own time and in His own way. We really do not know why He allows them to happen; but we must trust Him.
When bad things happen, it is important to remember that God is still in control. He knows what has happened, how it affects people close to the event, and even people far away and totally detached from it. He never loses control of the situation.
Our reaction to these events is therefore vital. Our human nature will take over and all our emotions will come to the fore – shock, fear, denial, anger and so on.
However, when we have calmed down a little, we should turn to God and praise and thank Him.
“What did you just say? Praise Him?”
We are praising and thanking Him for still being in control of the situation - not because He allowed the bad thing to happen.
Our praise acknowledges His supreme power over the whole universe. We are in effect saying that we accept that He allowed the bad things to happen, yet we still trust Him, and trust that His will be done.
When we acknowledge, in such terrible situations, that His will is still paramount; we open a channel, in certain circumstances, for Him to turn the situation to the good.
I have seen this happen several times.