Edward O. Wilson said this quote

The predisposition to religious belief is an ineradicable part of human behavior. Mankind has produced 100,000 religions. It is an illusion to think that scientific humanism and learning will dispel religious belief. Men would rather believe than know... A kind of Darwinistic survival of the fittest has occurred with religions... The ecological principle called Gause's law holds that competition is maximal between species with identical needs... Even submission to secular religions such as Communism and guru cults involve willing subordination of the individual to the group. Religious practices confer biological advantage. The mechanisms of religion include (1) objectification (the reduction of reality to images and definitions that are easily understood and cannot be refuted), (2) commitment through faith (a kind of tribalism enacted through self-surrender), (3) and myth (the narratives that explain the tribe's favored position on the earth, often incorporating supernatural forces struggling for control, apocalypse, and millennium).