Jonathan Haidt said this quote

Religiosity developed because successful religions made groups more efficient at turning resources into offspring. (including art, cathedrals, cities, earthworks, etc?)