When the hospitals group ran out of money to pay its rent this year, its landlord responded with a bid to buy the company.