Some philosophers view early religions as formalized practices to survive in difficult or dangerous landscapes and social practices needed for the group to thrive.