City life is costly and difficult precisely because so many people freely choose to live there.
This New York Times article discusses not only why it is so hard for poor people to live New York but also why the cost of living for the affluent is lower there than elsewhere.