It's the problem of all the employees (and potentially customers) of the company being plundered.
They have no say in the matter, and given that the lender can probably absorb the loss without, you know, missing mortgage payments or losing health insurance, I would absolutely argue it's not just their problem.
You can certainly hold the opinion that "it's just business" but it feels like an unnecessary part of business that very often has real disruptive and detrimental effects on average working people, for the sole benefit of rich people getting richer.
And yes I get that it's not just a PE problem, but PE is a big one of these kinds of problems.
This is a fundamental misunderstanding of the US employment model. Businesses can do all sorts of dumb things that end up making them unable to continue to invest in employees. The check against that is the greedy owners.
Regulations designed to ensure businesses never take risky bets lest they have to lay people off would be a nightmare of unintended consequences and surely in aggregate hurt employment.