The 13th amendment allows for slavery as a punishment for crimes. It does not require that everyone in prison be a slave.
It's not like people in prison are actually all guilty of their convicted crime.
You'll see this double-standard a lot for minor offenses as well. How many times has MKHB been caught excessively speeding (including 90? in a school zone) and still have a license.