The street, which is obviously unsafe, noisy, completely not conducive to good sleep, and open to the elements
It seems to me that this is not something with which you’ve had personal experience. Yours is a reasonable speculation but it’s at odds with the reality for most people who have been homeless. I grant my own experience is limited to two shelters, but both were horrendous and I’ve never once heard a good word about any of them.