Borrowing money to buy stocks is cheaper than repatriating their foreign cash. They’re hoping the U.S. will offer another tax holiday for companies hoping to bring that money home.
Which is why interest rates being so low is a scam. Apple credit rating is also AA+ so they're borrowing at virtual nothing interest. Why use cash you can grow vs use more debt.