It literally is. That's how every debt-financed corporate acquisition works. Twitter is paying this debt, not Elon from his pocket.
https://www.wsj.com/articles/elon-musks-buyout-will-load-twi...
https://www.wsj.com/articles/elon-musks-buyout-will-load-twi...
Allowing so long for the deal to close may have been a mistake due to what happened in the market between when they agreed to terms and when the deal closed.