The problem is that the people who want treatment often cannot find it, afford it, get to it easily, and fit it into their lives. Sometimes they will need multiple shots at it.
Meanwhile, people who need food, housing, sleep, and community are told they need treatment first.