Bankruptcy can definitely be in the creditor's interest. It can take possession of the company's assets, and then sell them off to recover principal (in addition to many other outcomes - bankruptcy is complicated).
Debt incentives do not align with equity.