You will die. I will die. Those who have gone before us, the great and the small, the powerful and the weak, have shared the common fate of dying. As sentient animals, we are sensitive to the reality that we will die.
Religions of all persuasions are obsessed with death, including Apostle Paul. His reasoning helped him cope with death. He associated Salvation with the death of Yeshua the Anointed One. He saw Death as a ruling power, as an enemy to be defeated (1 Corinthians 15:26). The death of one will institute the defeat of Death.
Those who cannot accept the reality of their own inevitable death cling onto religion, whether an Egyptian Pharaoh, a Hindu, Buddhist, a Mormon, Islamist, Jew, Christian, or any other.
Religions’ promises of living on after death and the promise of life eternal attract and control those who are incapable of coping with the thought of their inevitable fate.
Although religions fail the test of reality, they provide comfort to the vulnerable. An illusion, nevertheless.