Lack of sleep can lead to psychosis and other mental issues. Preventing people from sleeping in some manner is just inviting unintentional consequences. More muggings, stabbings, rapes, looting or something else?
People being homeless is a failure of society, not an individual.