faang companies has huge campus which probably mostly empty right now, why don't they built housing inside their own campus ? This will greatly attract their employee to work in the office.
I also suspect that insurance and other regulation for being a housing provider isn't something they are interested in.