In ancient times there was a stature of competitiveness between which civilization had the most powerful god on their side, so stories were expressed into pictographs onto temples and some scribed into writings of these tales.
Perhaps the Hebrews were once descendants of the Canaanite civilization that were at one time enslaved in Egypt, only to be released.
During their time in Egypt, these people observed how much the Egyptians focused their attention to one demigod the Pharaoh, that they should convert to monotheism from polytheistic style of worship and Adonai or YHWH was born, Lord of lords.