There are centuries of religious thought by mystics developing upon the texts inspired in part by those stories. The parts based on common ancient legends comprise a relatively small part of religious texts.
And still, if anything that’s supportive evidence. The ancient legends that pop up again and again, that survive centuries of canonical revision, probably reflect deep and spiritually apparent features of reality.