I don’t think housing would be the “official” reason as Elon is keenly aware of how hard it is to buy a house in central Texas right now. Source: https://www.businessinsider.com/elon-musk-austin-texas-housi...
It may not be the real reason (which probably has more to do with his feelings about California in general and maybe proximity to SpaceX's Texas facilities), but it's the official reason.