Sale-leasebacks are common and perfectly reasonable business strategies.
Generally speaking lease liabilities have a lower cost of capital than other types of debt, so making such a deal can help the company.
None of the decisions described in the post are either unusual or unreasonable from a management team trying to save a troubled company. They were just unsuccessful.