Stanford does have faculty housing: it's made available for the tenured faculty member to rent for life. The school owns the house. The professor builds no equity.
The alternative, given the cost of housing near Stanford and faculty salaries, would be for faculty to live over an hour distant. The university acknowledges the benefit of having faculty live nearby, and also recovers the rent money and keeps the property.