78% of the world population are religious today, per e.g. Statista.

Yeah but not every religious writer considers suffering and death a happy end.

Being religious is not quite the same thing as having a cultural frame of reference where death is a happy ending.