To me, it appears that gods are simply projections of humans, either in groups or individually.
When such groups or individuals are assholes then their gods tend to be assholes too.
Simple.
When such groups or individuals are assholes then their gods tend to be assholes too.
Simple.