Then what’s the point of bringing them in if the company is going to die anyway?
More often, though, the business is still worth more than the sum of its parts. It just wasn't making enough to pay the loans it'd taken out. Since the loans get eliminated in bankruptcy, the new owners might decide to just keep running the company (and want a new CEO, who they think will do a better job.