Apple keeps a lot of its cash “overseas” because of 30+ years of tax policy changes to shift the tax burden from businesses to individuals.
As long as business can leverage “overseas” cash assets to issue debt in the US without paying taxes on the cash, they'll do so, only until the interest rate on the debt exceeds how much they'd have to pay in taxes to repatriate the cash.