Homelessness is not always due to money. Lots of homeless people actually have a lot of money. I've been a homeless myself in Denmark, and I had so much money because I paid little or no rent by living with friends. I also had a job at the time, and used laundromats often. It made me think about the laws preventing people to roam. Society does not want a migratory people to cause chaos, so most governing systems are made with the purpose of making people settle down somewhere. Borders were probably invented during the middleages to prevent people from leaving their landlords :D