You have to explicitly optimise the city for public transit. Quite a lot of European cities do that.
Even in those cities very few enjoy taking public transport - and would drive if they had free parking, didn’t have to pay tolls, didn’t think it was terrible for the environment, etc
So basically your argument is that people would drive if it weren't terrible in every way? By that logic, people would eat plutonium... if only it were more available, tasted good, and didn't kill you.