I have heard that the story of Moses was developed as way to unite the northern people Judah with the southern Israelites.
They needed a central story to unite the ideas.
I’m no expert but I think I have the theory straight.