I don't know that he meant that it wasn't a good thing that you lived.
This is the kind of statement you might make to someone if they did something on purpose, not to someone that had to get treatment and have recovery time for an illness.
It's skewed thinking, it's nonsensical. You can't make sense out of nonsense.