Earlier this month, Microsoft borrowed $2.25 billion in unsecured debt. What in the world possesses a company with $40 billion in cash and short-term securities to go out and borrow money?

Rock-bottom interest rates are one reason. But the bizarre, byzantine U.S. tax code seems to be another.

Microsoft declined to comment on whether its recent...