I still say that's not a good argument.
If the repair costs $2000 to fix the car, and it's otherwise fine, then it's worth it over another car so long as it is still getting the job done.
Where I would agree with you is when the car is no longer safe, either from a structural standpoint, or due to safety standards improving drastically. In those types of scenarios it is worth buying a new car simply for those reasons.
Maintenance has to be done regardless of what kind of car you have. If you're skipping those steps then it'll come back to bite you. I think people just don't like maintenance because they think it should be less than the value of the car. Which is simply not the case. Cars aren't investments (typically) in the sense that their value rarely goes up. It goes down, almost always.
Maintenance is done to keep the vehicle operating properly, reliable, safe, and in good condition. Sometimes those maintenance steps may increase it's value slightly
But here's an example. Say you have a car. It's worth $1000 but is otherwise in fine condition. It runs great, it's safe, it is rust free and structurally sound. Except it needs to tires. Lets say those tires cost $750 because you also have to buy a new wheel and maybe the tires are harder to find. Do you go "well... that's too much... I'm just going to throw the car out and get a new one"
If you do, you're doing it wrong. The same is true for battery maintenance. If the car is otherwise fine, it's like buying any other maintenance. You may not LIKE that you have to pay for maintenance, but it's part of vehicle ownership.