Apple does offer a dividend fwiw. The others often use cash for share buybacks which is part of why the price is so high. So it’s not entirely like they just let the money sit there.
Whether or not they pay dividends or buy back stock, the average net is large. That's why they've accumulated these record busting sums.