Isn't it mostly just shifting existing Apple employees in Cupertino a couple miles to the new building? Regardless, it is Cupertino's choice to add more housing or not, not Apple.
I think it's irresponsible to add that much new office space without thinking about where everyone is going to live. If you want to add it, you need to add a commensurate amount of housing. Cupertino could have denied the new office, conditioned approval on Apple building a significant amount of new housing, or chose to zone for more housing itself, instead it chose to build only office & increase rents for its own citizens and those of neighboring towns.