I suspect the original stories were allegorical, but over time have been (mis) interpreted as absolute "fact" or else presented as that by people with an agenda. For instance, the "seven days" of creation of this world illustrate what we know of the science with what actually happened and the order it happened in, but the timescale of seven days was presented as easier to understand, where most of us blench at the actual suspected time evolution takes.