Fast forward a few years to a hypothetical future where Apple is the exact same company but with $500b in cash.
All other things being equal, their stock will be more valuable (and hence market cap higher) because each share also controls a share of all that cash. If they have more cash than market cap, something is wrong. Either you should buy Apple, or they have a lot of debt.