The problem isn't working for Apple or Google, it's living in Silicon Valley. Traffic is terrible, and there is no transit that takes you nearby. Housing is still astronomically expensive, even with a typical tech worker salary. People were fleeing the area before the pandemic. I don't understand why tech companies insist on building sprawling campuses in areas zone for single family homes, and surrounded by NIMBYs. Austin will be the next on the list, as housing prices and traffic become even worse there.
Google is at least building a new campus in San Jose, close to the train station.