I used to feel the same way about this, but then someone reminded me: the rovers were literally made to go to Mars. They were manufactured on Earth, but everything about them was designed with the red planet in mind- their sensors were made for a thinner drier atmosphere, their working parts built to move in lower gravity. On Earth, Spirit might not have even lasted the 90 days of her predicted lifespan before breaking, let alone nearly seven years. As harsh of an environment as it is, they were better adapted for there than here.
We didn’t abandon the Mars rovers. We sent them home.