How is that shower legal in any sense? The "company" which did the work no longer gives a guarantee?
This is exactly the same thing, except it was the company name that was sold. Acme Corporation sold the Acme brand to RoadRunner Inc, then quietly ceased trading taking all their liabilities with them.
That would be like buying a company that owes money on a building and telling the bank that you won't be making payments because you are keeping the building, but not the debt.
That's why a big part of mergers and acquisitions is researching all the possible liabilities that may exist for the company to be acquired.