The loans are then assigned to the company they bought, rather than the core sharks ... uh investors. The "investors" then repackage/selloff/spit shine as necessary to get it resold to some sucker. The investors get THEIR money back with a profit, leave the debt to the company and the sucker who buys it, and look for the next victim/target.
Musk likely went the rapacious route because he made a dumb move, and this is the only way he's getting the money he committed to the deal back.
Oh yeah, and when they buy the company, they are in charge of it. So they can pay themselves whatever they want in executive bonuses / etc.