These are NYC tech workers. "Food" isn't broccoli beef stir fry at home for $8. It's dinner at Del Frisco's for $300.
You need to understand that when people bitch about the "cost of living", they're not speaking in broad terms. They're speaking in specific terms, inclusive of their insane budgetary choices that they believe are mandatory to be seen as high-status.
Yes, you can live just fine on the median income. But in order to have your ego stroked as the super important high class person that you obviously are, you have to spend some money. Choosing to live in NYC in the first place is certainly part of that, the rest is just gravy.