That's the theory, but that assumes all stakeholders aligned incentives (or it ignores employees as stakeholders). In the real world it is far easier to fire lots of employees than it is to stop paying the bank loan. So being only sort-of wrong by giving a company a loan they can't quite afford to pay back doesn't hurt the bank at all - they still get their money.
The entity "pricing" the consequences has few consequences if they get it wrong, so why wouldn't they err on the side of doing more business and making more money?
The entity "pricing" the consequences has few consequences if they get it wrong, so why wouldn't they err on the side of doing more business and making more money?