1) You forgot about insurance
2) Your car's value was in 1999 dollars, not 2022 -- $1 in 1999 was worth $1.71 in 2022, so you need to adjust your yearly cost upwards into 2022 dollars
3) You haven't mentioned loan interest, which is additional cost if you financed it, which the average person needs to do
4) If $22K was below average for a new car in 1999, then your yearly cost will be below average as well
So just multiplying by 1.5 for inflation (an estimation) and adding $1,771 insurance brings us to $7,010. With some cost of financing and if it's a little below average to begin with, it seems to be roughly accurate.
--
Source quotes:
"The average cost of full coverage car insurance in 2022 is $1,771 per year"
"Monthly loan payments for new cars jumped to an average of $700 in the third quarter of 2022, while used vehicle loans averaged $525 per month, according to Experian."
"Registration fees vary from state to state. While some states charge a flat fee for all vehicles, others base the registration cost on age, horsepower or weight of the vehicle. Registration fees in Oregon are the highest in the country, ranging from $268.50 to $636.50 for first time registration. Arizona has the cheapest registration fee of just $8..."
"A car’s depreciation varies widely. In 2021, the average annual cost of depreciation is $3,900, according to AAA."
[1] https://www.bankrate.com/insurance/car/cost-of-car-ownership...