A strong domestic policy that emphasizes caring for those in a society who cannot care for themselves is how a wealthy and prosperous society projects strength.
Also if homeless people were put into a position where they could actively contribute to society instead of being a drain on resources, they would probably pay for the resources it took to get them there within 5 years.