I think an important distinction is that not all homeless are problematic, but the homeless you see are almost always problematic - in the sense of having an untreated severe mental health issues including drug addiction.
You never notice the single mom living in a shelter, who takes her kids to work at a laundromat, or the guy who sleeps in his car and does landscaping jobs during the day.