When I look around on the subway here in NYC I see every type of person imaginable. There are wealthy people going to work and unhoused people and everyone in between. There are certainly transit deserts and I have friends that live in them who do have cars -- largely out in Queens, East New York, etc -- but many of the people I know in the city with cars are financially doing just fine.
It's also important to note that the extreme cost of living in Manhattan and parts of Brooklyn is relatively recent. My friends that grew up here in the 80s, taking the subway to school, were far from bougie. They were living a car free lifestyle then and now just because that's how the environment of many parts of NYC is built. It's not like NYC was constructed as a walking paradise only for wealthy people in the 19th century.