I knew of someone who killed 2 people . He was a bad person and(I'm convinced) not mentally ill at the time.
So his defence pleaded insanity and he was sent to a psychiatric hospital.
He spent time with a bad but very disturbed person there who was inspired to carry out a copycat type crime...