It is surprisingly easy to end up like that, no matter what your qualifications. Go to a homeless person and ask them to tell you their story for some food and coffee, prepare to have your worldview shattered.
It's very easy to become homeless when you get the 1-2 punches of illness and divorce. A friend of mine went from riches to rags within a year that way.