That's just one of the contradictions. Another being that Yahweh was a god of war, then a God of Love.