The easiest possible answer is that all those stories are versions of the true history, and all of them get some things wrong. Or, if you are orthodox, all of them except the one in Torah gets some things wrong.
Multiple cultures in a region share ancient inherited cultural elements. That does not constitute evidence that one culture we happen to know about is based on a particular other culture that we happen to know about, or that it “borrowed” or “stole” or “inherited” from the other.
Such reasoning is illogical.
(Furthermore, “religion” in the sense you mean is quite a recent concept.)