The article states they'll let him out once he's deemed no longer a danger, so it's not like a strict life sentence. All in all, this person kinda dug their own grave. The only alternative would be to put him in a prison where he might be abused by other inmates.