Why is it whenever any natural or manmade disaster occurs, or a tragic event unfolds, or a violent act is committed, or an innocent life is taken, or humans are deprived of their loved ones by calamity, people beseech, pray to, or petition their God—the one being who at least in theory could prevent such occurrences—to offer comfort to those afflicted?

It seems counterintuitive to seek such consideration from a being believed to be omniscient and omnipotent; the very abilities necessary to prevent such things in the first place.
I, for one, have a question for this being should I ever find myself in a position to ask it.
“God, why do you allow pediatric cancers and how come there’s never been one miracle in the history of the world where you grew back a limb?”
Pray if you like, beseech your god if it gives you comfort, but bear this in mind, this same being either couldn’t or wouldn’t stop it.
(Author’s note. The image is not who some might believe it to be. There are no photos from 2000 years ago so please take no offense)