Really??? In Genesis, Joseph was jailed for years.
Back in the day, those who would now be given 20 years or life, were executed. They executed horse thieves. Rome used prisoners to row war ships. They were warehoused in those ships for years and sometimes decades.