Mars is a difficult environment for machines: dust, extreme cold at night and so on. Repairing the two rovers would cost vastly more than just sending replacements. To top it off, Spirit and Opportunity are decades of driving distance away from Curiosity, itself only designed for two years (but could last 10+.) More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.