I hate to say it, though, but I think the sort of person that would say something like that is the sort of person I have been for the better part of the last decade. I defined myself so strongly by my job, and what I did, that I probably would have seen it as a huge personal and moral failing to be fired.
I pity the person who said that. (Not nearly as much as I pity the person who heard that. What a shite thing to say to a friend, or even an acquaintance!) That's no excuse for that level of unkindness, but I think I see the worst parts of my personal history in what would drive someone to say something like that. I hope they see that, and I hope they are inspired to change when they recognize it.
But maybe I just think that is the more likely because I can totally see myself saying that ironically.
on edit: I probably don't sound caring enough but I have a hard time doing that, so believe me I am glad you do not have this problem anymore since it sounds pretty bad.