He concludes that because he assumes what the judge said is true. If we assume that, we must reject the scenario where he gets executed without surprise.
> he assumes what the judge said is true
The judge says he will be hanged. Your comments are inconsistent.