The word religion comes from the Latin religare
meaning to rebind. It also has the suffix -ion which is a procedural. So religion is literally the process of rebinding. Whether it be knitting one's self back together after some psychological difficulties or knitting a community back together after social conflict or natural disaster, it still provides a valuable function.
We are hardwired to bounce back from extreme stresses and difficulties. The processes by which we do so is the core and heart of religion. This is an important function that evolution has preserved and strengthened for at least as long as there has been ceremonial burial.
As nontheists, we are uncomfortable because nearly all extant versions of religion today include various elements of supernaturalism, but this need not be the case in the future. Religiosity is valuable as long as we can focus it on it's relevant tasks and decouple it from metaphysics and ethics.