One of the functions of god is to give us something or someone to direct our anger at.
A friend of mine has just died unexpectedly but of natural causes at the age of 48. As well as feeling shocked, I am angry, but there is no-one to be angry with. It is no-one’s fault, and it isn’t even an act of betrayal by a deity. It is just the shit that happens. It would be so much easier if I could rage against a deity.