A good parasite never kills its host.
I'd say the truth is somewhere in between. Religions were a useful adaption. But after being supplanted by more useful mind viruses (like philosophy, which is itself becoming outdated; or formal justice systems), then their utility no longer mattered - just their ability to cling on.