What the ranking measures
Market cap is calculated from share price and shares outstanding. That makes Apple, NVIDIA, Microsoft, Amazon, Saudi Aramco, and other global leaders comparable on one scale even when their stock prices and share counts are very different.