Why are some people so insensitive to people with lung cancer?

I have a friend who drank alcohol and smoked for years. You really couldn't find a nicer person. When he got lung cancer, somebody said he got what he deserved. Nobody deserves lung cancer even if they made bad choices.
he was in a ton of pain when somebody said that.