Sounds like your conflating the judge with the prosecutor.
He was part of the team and even said at sidebar he wanted a conviction. All he got was lying and he will max it out. He just threw the verdict paperwork at the clerk. I wonder if he had to go buy an extra bottle of whatever pills he pops all day? The jury saved him from a reversal on appeal for allowing all the horrible forensic evidence and trying to hinder the defense. I think the jury saw through him.