What do you mean by homelessness being illegal? Sending a homeless person to jail? In most civilised societies, food, shelter, basic education, and health care are human rights. So, sending to jail politicians and bureaucrats who fail to provide shelter for everyone?