One sure ingredient was that their faith was strengthened by their constant prayers and belief that they were not alone. When they prayed and believed that the Creator was with them, like Enoch, they were able to walk with God.
To prepare people for eternal life.