My dad worked for a small manufacturing firm that did this. The owner created a holding company that owned all of the buildings. Then his manufacturing company leased them back.
If anyone sued the manufacturing firm he still held on to the real estate.
Plus he could monkey with his own rent to create tax losses when that played to his advantage.
I really hate living in such a litigious culture.