I suppose we can’t have it both ways. This from the NY Times:

For atheists, it is not a particularly welcome thought that religion evolved because it conferred essential benefits on early human societies and their successors. If religion is a lifebelt, it is hard to portray it as useless.

For believers, it may seem threatening to think that the mind has been shaped to believe in gods, since the actual existence of the divine may then seem less likely.