If they are unable or unwilling to be healthy members of society, they need to be reomved from society.
Untreated mental illness, self-medicating, or stoping precscibed therapy does not give someone the right to inflict harm, injury, or death upon others.
Serial killers and serial rapists are not "mentally ill". They are predators beyond rehabilitation.