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.
If you discount the automatic stock buybacks they do to compensate for employee stock bonuses this is true. But that is still a pretty large amount of money over the past decade.