But the politicians aren't the ones doing the sentencing. They just write the laws. The Slate article suggests that it's the judges who are handing out increasingly Draconian sentencing. Why are judges doing that?
They're "supposed to" be appointed. This is the way it used to be and the way it constitutionally has to be at the federal level. But I think more than half of states have elected judges.
True, they often run unopposed, but that doesn't free then from political pressure; if they make an unpopular decision, any lawyer could opt to run against them by simply campaigning as not the other judge. They would usually win and get a fantastic résumé boost.
It varies from state to state (perhaps even county to county) In some places they are appointed, in others they are elected.
When they are elected, even if they run unopposed they still tend to act tough on crime. If a judge or prosecutor started acting weak, the could very quickly find themselves opposed in the next election.
Often times judges have their hands tied. Many minimum sentencing laws were passed in the late '80's & throughout the '90's in response to the crime waves of the era. Judges simply can't give lower sentences in many instances even if they want to. In my opinion, this is a significant contributing factor.