Problem is a lot of people on the street have other issues, be they mental health, addiction or something else. A lot of the places that are available to assist the homeless can't cope with the more demanding people they get so they get left on the street.
Easy to say they should just stop...