Fair enough, but there's a long tradition of black humour that becomes amusing because it mercilessly points out hypocricy and pain. Done right, black humour is halfway between a coping mechanism and a way to confront issues that are much harder to take head on.
Listen to a bunch of old doctor's snark at some point. They will generally be making light of death, despair, and all the other horrible things that surround their profession, but they don't (barring the assholes) make fun of the people going through those things.
I suppose my point is that making your audience feel bad by pointing out truths, either directly or indirectly, is an incredibly useful comedic technique.
Honestly one of my favorite examples is
Tig Notaro's set about cancer. It's not a happy routine but it's hilarious and incredibly touching.