Sounds like some degree of mental illness might be involved too. A lot of problems like homeless are really just secondary problems of untreated mental illness, following on from the ACLU's case in the late 70s or early 80s that resulted in mental hospitals being emptied of patients. It's now very difficult to get someone hospitalized for mental reasons, so they just end up as the flotsam of the streets.