So some documents do treat housing as a human right: (UN declaration of human rights) Article 25.
(1) Everyone has the right to a standard of living adequate for the health and well-being of himself and of his family, including food, clothing, housing and medical care and necessary social services, and the right to security in the event of unemployment, sickness, disability, widowhood, old age or other lack of livelihood in circumstances beyond his control.
- https://www.un.org/en/documents/udhr/
UN declaration is just a statement of "wishes". Almost no country reflects it in their actual regulations or constitutions. And let's not forget that many dictatorships signed that declaration and respect none of its principles, so this is, unfortunately, worthless.