Meta has ~$40B as Cash-on-Hand [1]. Why does it need to raise this money via bonds? [1] https://companiesmarketcap.com/meta-platforms/cash-on-hand
They looked around and thought, we don't have much debt compared to other companies, I bet our company value would go down less than $7B if we offer a $7B bond.
If they can give the $7B to investors today, but the stock value goes down less than $7B by taking it out, they are increasing shareholder profit.