Or perhaps because these traditions arose during a time when the proto-Jewish people saw their god as one of many, but special to them, and jealous and avenging.
That’s the only way to read the texts and come to any sensible conclusions about his motivations and the behavior of the Israelites in the stories.
Trying to shoehorn later beliefs into the ancient Bronze Age and early Iron Age mythology is never going to produce a comfortable fit.
The Moses stories only make sense when viewed through the lens of the reality of their time.
Kudos to the Jewish traditions that understand this and take the stories for what they are.
It’s conservative and especially evangelical Christians who regularly twist themselves into dissonant knots trying to backfit the morality of the ancient tales by insisting they be read literally, as actual history.