The people who buy the debt know what they are getting into. (And if those 'suckers' don't know, honestly, they shouldn't be investing in junk bonds etc.)
what if the debt is sliced up and repackaged and rated AAA fraudulently?
Well, yeah. Like the rest of the financial system.
Why not? It's pretty good for all the stakeholders that have a say.
The old shareholders sold for a nice price.
The new ownership didn't have to pay for the whole thing.
The lender gets to charge a pretty good interest rate because there's a good chance of default. If they're lucky, they get repaid; if not, maybe they made enough in interest to make it worthwhile; maybe when it defaults, they'll be able to make something worthwhile out of the wreckage they got at a nicer price.
Leveraged buy outs aren't great for stakeholders that don't have a say. Employees usually get new terms worse than the old ones; in this case, there's been some severance at least. Customers get a promise of a big bang bankruptcy in the near to medium term, rather than a slow fizzle. Sometimes companies with a large payment they can't make can restructure, and sometimes they shutdown with little notice. As a private company without public accounting reports, there will be a lot of guessing about revenue and debt service.
Because at the end of the day, as you mention, it's the employees and their families that will suffer the most. But as long as those employees don't have board seats while strikes and labor-related physical protest movements have become a thing of the past then I guess this is the reality we'll have to live on for the foreseeable future.
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.