Jonathan Haidt said this quote

Groups create supernatural beings not to explain the universe but to order their societies.