That's a great idea!
In fact, before the 1980's there used to be such facilities. Unfortunately, our society can't enforce vagrancy laws or use force to gather people up and get them help as it would hurt people's feelings and infringe on their charter of rights. As a result, our society ends...