Even if the goal is to deter crime, we still have a principle of proportionate punishment. We don't cut people's hands of for petty theft, and we don't execute people for exceeding the speed limit even though both should be pretty effective deterrents.