While I don't disagree with what you said compulsory treatment remains a complex issue, involving ethical, legal, and medical considerations. Enhancing mental health services and support systems could provide more effective interventions before individuals enter the criminal justice system.
Studies show that the stigma around mental illness—basically being judged or looked down on by others—often stops people from getting the help they need. The fear of being discriminated against in social, cultural, and work environments also keeps people from seeking treatment.
Honestly, our whole system needs to be reworked.