The direct comparison of Apple market cap (stock) to country GDP (flow) is invalid.
(EDIT: noting GDP is a flow measure)