It's probably because the people who wrote them probably believed they were writing the Word of God down; basically, God was the writer, they only wrote the story down. The same question could be applied to any form of scripture, especially the Hebrew scriptures, which are the origins of the three main Western faiths (Christianity, Islam, and Judaism).