In some circumstances it can be a relief when someone dies. I was relieved when my husband died, although he was very young. He had cancer and was in great distress. I felt relief when my mother died, too. She was five days off her 90th birthday, had had a stroke which deprived her of sensible speech, and her quality of life was nil. She was very unhappy. My father was 94, and dying at 94 isn’t really a tragedy.
None of this meant I didn’t grieve for them, but it would have been very selfish to have wanted them to live.
I’ve never experienced the death of a young, healthy person - in an accident, say. Now that would be grief on another level.