What exactly are homeless people "supposed" to do?

Like, what's the actual societal expectation? Shelters limit how long you can stay, psych wards don't want them, it's hard to get a job without an address and adequate background. I don't get what the actual expectation is here.