Criminal punishments are more about the social consequences than about the crime itself. If someone gets X years in prison for crime A and another person gets 2X years for crime B, it doesn't mean that crime B was twice as bad. It only means that after taking a large number of factors into account, it made sense to give twice as long sentence for crime B.