In antiquity yhwh was the common enough sort of god who had to be propitiated with sacrifices and shit because if he got pissed he might do something awful. Conveniently the priests had a whole book of nasty shit that he'd done in the past when people got uppity.
Remember that religion is about social control not some god
Remember that religion is about social control not some god