Most ancient religions had gods that were both good and evil. They were flawed and just as bad as humans if not worse for their abuse of power. Christianity and Judaism is pretty different in that they claim god is super good, especially Christians, even though there are things in their own Bible that show their god being evil.
I always used to wonder why they worshipped such a shitty god, and if I, a mere human, have better morals and know right and wrong better than the Christian god, what good is he?