The reason is Wall street. If Tim Cook invests heavily in R&D, earnings will tank and then activist investors will replace him to boost dividends and buy backs.
Google can get away with this as the CEO has a lot of credibility and also class B voting shares.