Human arrogance leads us to think we alone are moral beings. Other animals demonstrate empathy, compassion, grief, comfort, assistance, forgiveness, trust, reciprocity, and a sense of justice, revenge, spite, and much more. When acknowledged, those traits have been downplayed as “building blocks” of human morality.
This human ability for self-deception is crucial to religious belief. If many believers could see their own minds more clearly, they would see that self-deception plays a role in their acceptance of faith.
So, our illogical craving for these new cultural creations arises from adaptations that helped ensure survival—the cravings that caused our ancestors to seek out fats or sweets, which helped them survive.
While not an adaptation in its own right, religious belief is a by-product of those psychological mechanisms that allowed us to imagine other people and other social worlds, abilities crucial to human survival. Because religion only slightly alters those adaptations, it can be equally powerful.