So maybe it's something deeply rooted in humans, since one of our great sources of success as a species was the ability to pass on information through generations, allowing it to compound.
And it makes sense that it works, if all narratives were literal then they'd be quite boring, maybe less memorable.
Scientific literature has it's own way of conveying information, but serves a different purpose, without magic and mythology. I think very few people look at religious books as scientific material/source, maybe a very small, but loud, minority.
Others simply evolved in that direction, through thousands of iterations, so it seems like lot of religions might be quite "optimized" and boiled down to the essentials of human condition, so the type of narratives, frames and contexts influence our perspectives and help us thrive and propel us forward in life.
I do consider them as a projection of our limits, and some kind of stuff to respect a bit because when you deviate too much long term, you lose.