That's an explicit carveout in the Constitution allowing slavery as punishment for a crime, not someone waiving their rights.