Not just immoral; illegal.
A gross over simplification.
It can be difficult to establish whether a business is insolvent. Moreover, there may be very good reasons for believing the company can recover.
Indeed, for that reason many companies are given legal protection while trying to re-structure their affairs.