(I believe) it is generally accepted among biblical scholars that Genesis and maybe the next couple of books were written during King David's time. A person or more likely people probably decided it was a good time to actually write down the oral traditions that had been passed on. Thus, the...