The whole biblical Exodus story of the Jews exiled to Egypt where a leader Moses finally led them out of captivity is a myth. Part of that myth is that Moses was born to a Jewish woman (Levite) in Egypt at a time that the Pharaoh commanded all Jewish male babies be killed. So that Jewish woman, hid her child then at 3 months old, when she could no longer hide him, put him in a basket and sent him down a river. Then ironically the daughter of the Pharaoh saw the child and adopted it as her own. Only later would that child help his people escape from the Pharaoh. (Exodus 2)
Sargon the Great, King of Akkadian around 2,300 BCE also had a similar legendary story about his birth. But earliest legend story we have is from the 7th century BCE found in the Library of Ashurbanipal. He was born as the illegitimate son of a priestess or low class woman. In shame she secretly hid her child and then placed in a basket of reeds and floated him down a river where baby Sargon was found by a man and raised as his own son — only later to become a great King and leader — like Moses.
My daughter and I are now reading the Mahabharata were a similar basket story came up. I copied the page with the picture on it for you.
In this story, a virgin is impregnated by the sun god (sound Christian?). In shame the child is sent down a river and found by a charioteer (low caste) who found him a famous teacher of war. This child was Karna who would become major warrior in the Mahabharata.
Clouds of Oral Traditions
Below I point out the source of the three basket Karna, Sargon and Moses (probably in that chronological order). I also added “Clouds of Oral Traditions” temporarily to my diagram to emphasize that written traditions often are patched together from very long oral traditions — often oral traditions that intermingle. I know my diagram is busy, but I hope it helps again illustrate that stories can either be the result of sharing and remixing or spontaneous creation of similar concepts in diverse cultures.