What if you paid for the car in pesos, instead of dollars, would you have a capital gains tax (honest question, I don't know how it works in the USA)? Nobody would say pesos aren't money.
(For the special case of dollars, it makes sense that there's no "capital gain" to tax: since the "capital gain" is measured in dollars, the gain or loss on your dollars is always zero.)