Apple does pay a dividend. And gives even more money to shareholders in the form of buybacks. The total shareholder yield (dividends plus buybacks, divided by market cap) looks quite different for Amazon and Apple:
https://advisortools.zacks.com/Research/Stocks/AAPL/Sharehol... https://advisortools.zacks.com/Research/Stocks/AMZN/Sharehol...
Why pay out dividends to your investors with after tax money that will be taxed again at a higher rate when you can just stash it overseas and buy more capital assets and let the stock grow in perpetuity. Same with apple.
As an investor, you don't need dividends, you just sell a few shares each quarter.