The people you see shouting on the street are usually suffering from schizophrenia, which has a base rate of 1% in the general population but exceeds 20% among the homelessness. Untreated schizophrenia will lead someone to homelessness, almost inevitably.