It is not. They are not "needy." The market, pardon my language, fucked up either their compensation, or the rental rate, or both. This is the failure of an economic system to properly account for a worker's labor and deliver the shelter designated in the social contract, not an oversight or negligence on the worker's part. Especially with unions defanged or non-existent.
The idea that 'anyone who labors is ipso facto entitled to shelter' is new to me in the context of social contract theory. Where does this idea originate?
...Locke's social contract. This is its basic premise. People consent to performing labor not directly related to their survival, and in exchange, the state resolves to provide the necessities that are not guaranteed by that specialized labor. If I work full time and can't afford food and shelter, why would I continue to work? Further, if there are structures preventing me from subsisting, away from a state which will not secure my livelihood in exchange for my labor, why would I not dismantle those structures?
It's not charity, it's account-settling.