Muslims and Christians, and probably most other religions I suspect, seem to believe in a happy afterlife which is inevitably better and longer lasting than this one on Earth.
So what is wrong with dying and death here now? Why the terrible grief at the death of loved ones? Surely when the policeman knocks on the door to inform such ones that a relative has just been killed in a vehicle accident that believer should leap for joy.
Admittedly there may be sadness at the fact that one is no longer able to share this life with the deceased, but it pales into absolute barely worth mentioning insignificance at the overwhelming reward the deceased is now partaking of. (Assuming, of course, that the deceased hasn't ended up in that bad place reserved for bad people. Funnily enough, I can't recall any funeral mentioning this little alternative destination.)
If my life was to consist of one week of working followed by fifty one weeks in a paradise island holiday and then someone said I can leave work after only two days and go straight to my hols I'd be overjoyed. I'd certainly be happily envious of any work colleagues that got this perk before me.
If my life was to consist of 70 years of earth life followed by eternity in a paradise and then someone said I can leave earth after only 20 years and go straight to my paradise I'd be overjoyed. I'd certainly be happily envious of any earth colleagues that got this perk before me.