Consider it a wacko version of immunity. It's actually really smart, by doing this, the chick gets the help she needs (fixed delusions anyone) and allows for quick, meaniful prosecution of 3 or 4 other people involved. Without this, there was serious doubt if they could get a quick resolution to this at trial.
"A few months ago, I told the American people I did not trade arms for hostages. My heart and best intentions still tell me that's true, but the facts and evidence tell me it is not." - Ronald Reagan 1987