Of course, as much sense as it would make, raising the tax on gasoline is politically impossible. As is imposing a tax on miles driven.
The problem with making things directly visible to consumers is that everyone is a consumer and if the laws are annoying or harmful to them, they will vote in a government that repeals the laws. Then your carbon reduction measures are gone.
Especially a transportation-based tax. Right now, the major US cities are having an affordability crisis. Bad decisions have led to a housing shortage, and many residents (NIMBY, really) are convinced that these are correct decisions, that people who can’t afford it should just move out. So, we have people living in Stockton who commute to San Francisco for work, because they can’t afford to live in San Francisco.
A tax per mile is a regressive tax on the poor people who don’t live in walking distance of their workplace.