In the sort of place I'm used to, an urban area of about a million people, taking the bus is not logical if you have a car anyway. You don't get an economic benefit if you own and insure a car at all. And you pay a big penalty in time and flexibility.
That's what creates the class divide, not something arbitrary in peoples' heads. The people who ride the bus because it's economically rational are inherently the people who have no choice.
Talking about general social problems as the source of the issue is misguided, in my opinion.
And a good transit system can beat many car trips, even for people that do have cars. Especially if parking spaces stop being subsidized.
I suspect that only applies to the cores of European cities - most have got much larger since the car was invented and the newer areas were definitely designed with cars in mind.
e.g. Maps of Edinburgh over a few centuries:
https://maps.nls.uk/towns/edinburgh-city.html
Even in the 1920s Edinburgh was pretty small compared to its current extent.
In the US, mostly the only 'good' bus service is geared for 9-5 workers in big offices in big cities. Anything outside of that tends to run across the economic divide that: people who take the bus _have_ to take the bus, while taking the car is a luxury in time, freedom, and isolation from possibly literally unwashed masses (who might also literally be taking the bus in the summer for a place to have some AC and safety with a seat).
The issue is very much related to classism and a lack of social safety nets and inclusion.