Tricks Tricks:
He's not mentally competant to understand what's going on with the court, let alone the act, and in Canada that means he would be free to go.
Which would even be worse.

He doesn't have the capability to understand what he did was wrong and doesn't have a medical problem which could be corrected by treatment. Unfortunately this is the best option for the protection of society.