By that logic, you may as well say evolution led to TikTok. "Religion taps into human psychology" seems more accurate.
The point was that religion has become a part of our brain. How this happened (evolution, perhaps by accident), was not the important bit.
It isn't evolution, at least not in any genetic sense, it's simply culture. People believe religion is an immutable fact of life and the only possible source of meaning and morality when their culture teaches them as much. But there are cultures where religion matters far less than it does in, say, the US, where people get along just fine.