Apple has free shuttles to pick people up. There are 4 large apartment buildings recently constructed near the new office. Most people don't work in Cupertino. Lastly, many people can telecommute if they want to.
Apple is not perfect, but the energy Tim puts in making this stuff happens is beyond marketing desire.