The other difference from an ‘insanity plea’ is that you can be sectioned against your will. This bloke might have thought he was entirely sane, and may have been hoping to get a prison sentence to behave like a martyr, but the court has effectively said “you’re not a stormtrooper, you’re just ill”.
On the downside, he’ll only be locked up as long as his doctors think he needs to be. It’s possible he could be let out in six months, and he’d never spend a day in prison.