Daily survival is not a game theory problem. If I were homeless and expected sexual assault at shelters I would probably feel so insecure there that I would end up trying to live on the street instead, even at the risk of freezing.
It's not a rational choice but sexual assault does not often result in (or come from) rational decisions.