Why were Adam and Eve cast out of Eden?

The book of Revelation was written many centuries after Genesis, so is not pertinent to what I am discussing.