If you ask me, it’s one of the reasons why I think monotheism like the Abrahamic religions simply doesn’t work on a logical level. If one single, omnipotent deity is in charge of everything with no threats to its authority in any capacity, then there is no excuse whatsoever for said deity not to do things better!
I mean, take Greek myths, for example. Zeus was the king of the gods, yes. But only after usurping his father, who in turn usurped his father. And none of them actually created the cosmos (that would be Khaos and the Protogenoi). Likewise, Zeus is not in charge of the afterlife, that’s his brother, Hades. And Hades does not even judge and sort the deceased himself, he has an entire bureaucracy for that. Thus, it’s much easier to understand how any flaws can exist in such a system, regardless of whether the gods are jerks or benevolent.