There’s no point to a country. It’s just a form of governance that is in vogue in the 21st century. Like every bureaucracy, a country wants to grow and survive.
The homeless is also a very broad term. I think this sort of article doesn’t refer to people that are able and willing to work, but have to live from their cars. It’s usually about people that are often incapable of being a functioning member of society, beyond their housing status.
The best way to help these people is not to give them “benefits”. It’s to permanently place them in facilities that can afford them a humane existence. There’s no reasonable amount of “benefit” you can give to some of these people otherwise.