That's true, but I also save a bunch of money due to the widespread availability and accessibility of public transportation and quality of life infrastructure in NYC. Sharing a three-bedroom apartment with other people allows me and my partner to rent 2 bedrooms (one for our residence and one for a home office) at a very reasonable price in a desirable Brooklyn neighborhood that's walking distance to some of the best nightclubs in North America! We also get to split the cost of utilities three ways.
My monthly bill is lower than many friends who left the city for the suburbs since I don't pay for a car, insurance, or gas. I mostly just walk or bike to the places I want to go in my neighborhood or pay the $2.90 fee to take the subway. I've lived in places like Austin, Denver, and Phoenix, and even ten years later, I'm finding there is still tremendous value for staying in a metropolis like NYC.