A lot of them are dealing with mental health issues and can't afford treatment or medication. And a lot of them are also veterans dealing with the same problem. There just isn't enough mental health and addiction treatment resources.  Many people slip through the cracks of a system that only wants to incarcerate them, not treat them, and serves to perpetuate their problems.