Maybe no city has managed to make public transport better than a car in every circumstance, but many times public transport is better. In fact, nobody would take public transport if it wasn't better for them.
In cities where public transport sucks less, there's more circumstances where it is better, and so more people use them.