The UK is weak on crime, in most cases. It's extremely rare for life to mean life, even for 1st-degree murder.
As I understand it, he was convicted of the murder but was also ruled insane so he was sent to a hospital prison.
I think he took his meds so he could get out early. It's like how criminals get religion in prison.