As an atheist I agree, but I don’t think it as anything to do with religion.
It’s all about faith, in the sense of a strong belief in something. Be it a god, aliens, a spaghetti monster or just yourself.
Religion does provide that yes, their daily beliefs become auto suggestions that their subconscious brain accepts, making mental health and life easier.
But anyone can achieve the same outside of religions.