A lot of the early books come from a time before the church decided to make Abrahamic religions monotheistic. YHWH was once the Hebrew god of war; a god within a pantheon of others. In that context, it makes sense that the other gods would have been doing their own thing. Another good example is GEN 3:22.
It isn't explained. They were there when Adam and Eve were expelled. Which means they were kinda like an experiment for God.
But God is all-knowing, he basically set a trap on them knowing the outcome. He knew he was going to punish humanity even before he created the universe.
"Jusr wait until I create these mofos, the ass whooping I'm gonna give them... Fucking hell, I love working in mysterious ways"
But God is all-knowing, he basically set a trap on them knowing the outcome. He knew he was going to punish humanity even before he created the universe.
Genesis still has some remnants of when yahweh wasn't triple-omni. E.g. when he comes into the garden of eden after they ate the fruit, he asks what have they done as if he didn't know yet. So he likely isn't omniscient in the lore yet. If we wanted to be charitable, he's just a sociopath here, and not a sadist that created a species already knowing he's gonna punish them forever
Don't know wasn't there but Genesis 4 definitly speaks about other people because Cain has a wife and his sons married some women who were not mentioned before.