A car is not a phone or any other electronic device-two completely different approaches of doing things. Electronics get cheaper as they age-better processes in making them and more powerful with each successive generation. Do you really need a new phone every 2 years or less? No, more like every 5-7 years. Part of the reason why they aren't repairable is to make them cheaper to assemble and to meet thermal requirements.
If warranty costs where such a huge issue, why is the average age of a car in 2024 12.6 years, if repair costs where that much, people would be spending money on replacing them instead of repairing them. Your focusing on a fraction of a what could be actually going on, but people keeping vehicles longer and longer shows that repair costs are negligible vs buying a new car.