I think it started out as myth. Attempts to answer questions like "how did things begin?" "how did we get here? Why do we die? But by verse 8 of Genesis, we can dismiss the Bible as history. It has day and night existing before there is a sun, and plants growing.