There is a secret sauce: pairing a company (Amazon.com) with heavy net operating losses (NoLs) with a very profitable company (AWS).
The result? Amazon pays zero taxes and can continually expand. The NoLs offset the profits, and every time Amazon has a division that becomes profitable they offset it by entering a promising but loss-inducing new sector. Then, when that division becomes profitable - rinse and repeat.
This is Bezos’ genius.