I never know how to think about things like this. Technology improves over time somewhat inherently, but the experience of getting in that 2001 $21k car and the 2026 $50k car are incredibly different. I'd guess the 2001 car didn't even have a backup camera and the 2026 car likely has enough technology that it can essentially drive itself in many situations. Safety improvements have also been very significant.
Indeed, among other things 2001 predates the little car seat anchors between seat cushion and seat back. There are likely many other similar incremental regulations adding cost/complexity (not arguing about their utility one way or the other)
Cars lasting longer on average and getting better mpg means the TCO might be better even with higher up front costs. (Expensive repairs might bring that back down though).
They are only a little heavier on average. Steel and aluminum is relatively cheap so that isn't the main reason. The increased cost is due to a lot of different factors like increased dependence on technology and safety requirements. There's much more sales of larger SUVs/crossovers which get a higher markup despite often using the same platform as smaller vehicles. Materials may be more expensive now too. Another possibility is EVs driving up the average cost.
> They are only a little heavier on average. … There's much more sales of larger SUVs/crossovers
The weighted (pun intended) average size of car has definitely gone up in the US (those SUVs really are popular) to an extent where I could imagine a considerable average weight increase. But I suspect a lot of it also has to do with all the extra on-board computers, safety features and other doo-dads you're basically stuck with now.