He was not in bed with the thieves.

The judge is the neutral objective party whose job is to weigh and measure all the surrounding circumstances and decide what's fair. By conditioning a plea, the district attorney is playing the role of both prosecutor and judge.