In some areas like the San Francisco Bay Area, schools would have to pay astronomically more in order for teachers to compete against software engineers. I’m a community college professor in the Bay Area making a low six-figure salary, but even a townhouse in the neighborhood my college is in is easily $1 million for a two-bedroom, and rent for a two-bedroom apartment is easily $3500/mo. A modest salary boost can help me rent a two-bedroom apartment, but if I hope to buy closer to work, my salary would need to double, and there’s still the challenge of saving for the down payment, since there’s no such thing as RSUs in a not-for-profit institution.
At least teacher housing provides a way for teachers to obtain secure housing closer to work without having to directly compete against highly-paid corporate workers with RSUs.