Yahweh may have originally been viewed as the son of the patriarch god, called "El." In other words, Yahweh was one member of a pantheon of gods. He was sort of like their version of Ares, a god of war.
As stated above, remember that one of the goals of the authors of the Torah was to eliminate worship of other Gods (polytheism to montheism).
Interestingly, Akhenaten was the Egyptian Pharoah who tried to do the same thing for the Egyptian pantheon in 1370 BC, but he failed for many reasons, and was promptly castigated, and his predecessors tried to eliminate his name from Egyptian records and monuments.
Actually, much of Genesis makes a bit more sense if one thinks of a deistic chief of the pantheon (El) creating in Genesis 1, but assigning the caretaking task of Earth to the demiurge trickster-figure YHWH in Genesis 2. eg YHWH says, "man is made in OUR image" or "man has become like one of US". This concept is reflected in the parallel timelines of man's creation in Gen 1 vs 2.
Fact is, Christianity demoted the Gods of the original pantheon to a cast of characters called 'angels', so pantheism is in fact still with us in a form that has simply evolved. The characters mutated, and underwent a change of names.