Whomever EDITED Torah did this, it was likely not Moses. Or maybe it was Moses and the later editors forgot to edit out the polytheism? It could be either. Moses was very likely a polytheist and this got edited out much later.
In any event, I just want to draw your attention to the fact that NO WHERE in the Hebrew is GOD ever called "Jehovah" or "Yahweh" or "Yahova" nor any of these Christianized labels or pseudonames.
Here's something you might want to look at regarding the name of GOD:
I AM GOD—Why Christianity Does Not Know the Name of GOD
https://keith-michael.medium.com/i-am-god-57acf8af5a6c
I hope you find it eye-opening. :)
Great article. I really like the appraoch!
Peace!