I know most people here are fairly well-paid, intelligent and many are well-adjusted and stable. But it'd be mistake to assume this happens to other people. Sometimes a series of unfortunate events (lost job, lost child, lost marriage) trigger a series of events, helped by alcohol and poor-decision making and resulting in homelessness and poverty.
When I lived in Oxford I came across a book put together of mini-interviews of the homeless there - their stories. It really surprised me how many of the biographies started off with a well-paid professional job with a happy family and spiralled out of control.