Being as intelligent and rational as they are, the human species have worth. each human being is valuable not only for the value they can provide for other people, but they are valuable in and of themselves.
As such, homeless people are valuable enough for us to be concerned about their sufferings. Homeless people are also valuable enough for us to be concerned about their mortality.
However sleeping outside of buildings for humans can cause suffering and death, and it is not humane to allow humans to die and suffer.
Another reason why we need more homeless shelters is because providing shelter to humans is more humane than not.