It's funny you should say it that way as it's exactly what I've been thinking too. While the new cars don't need nearly as much care as they did 20 years ago (3,000 mile oil changes and 90,000 mile timing belt services come to mind) and should last longer, there is so much electrical and electronic BS happening in the cars that I worry that as they age, the things that will break will be expensive, difficult, or prohibitive to repair/replace.
Three weeks ago I crashed my 2017 Hatchback. The actual body damage was about $5,500 of the total cost of repair, the rest was the (3) airbags, airbag controller, sensors, all (5) seat belt tensioners, the new RF seat, new dashboard, and new headliner. The ultimate sum was $16,500, and they wrote the car off. My point is that it's all of the technology (technology which saved my wife from a great deal of bodily injury, I will add) costs to replace, and one day the infotainment will stop working, or one of the myriad sensors in the engine/powertrain, or in the car's safety systems, and it will require a profoundly expensive visit to the dealership to get it sorted out.
Is it just easier to replace them every few years and keep making a payment with the peace of mind that (mostly) everything is covered under warranty? That IS the primary advantage of leasing (something I cannot do as I put about 20,000 miles on my cars every year); a new car every few years, generally under warranty the whole time you own it, but the drawback is that you will forever be making a monthly payment to do so.
But I digress. . . I've gone WAY off topic here.