I think people just have different modes when it comes to tragedy. The first is empathy, where you think "holy shit a thousand lives ended suddenly." The second is a sort of abstraction where the people are more like characters in a story. I don't think people who tell dead baby jokes are actually thinking of how terribly sad it would be for an infant they loved to die.