Asking this sort of question is not great in professional context either.
Someone working for the police could say: "Yeah, my boss made me clean up a triple homicide."
Or a janitor at a fast food could say: "We found a dead addict in the toilets."
Like these are all profession related answers. Yet they are not answers you want. Stop asking dumb questions.
I don't really like it either.
I much prefer asking about things the candidate would take from or actively avoid from the previous job.
Morbid curiosity is a thing, even if professional setting. I only know one person who got this kinds of questions when they applied for forensic technician jobs, collecting remains of dead bodies and such.