Same in the USA. This is what “prosecutor deals” are for: plead guilty and we’ll let you off with a year in jail, make us hold a trial and the judge will give you ten years.
edit: ohhhh oops weasel wording. You're right, he did in fact have multiple judicial hearings! It's functionally irrelevant since none of them ever had the power to release him or find him innocent.