Many factors influence a defendant's sentence: The severity of the case, the discretion the legislature has given the judge to impose an appropriate sentence, and the needs of the criminal justice system.
Learn about standard (and not so standard) punishments.
You may be wondering about issues discussed here.