Remember "The Producers"? This is actually based upon a real situation. For years - decades even - the Edison Hotel in New York hosted the show "
Oh! Calcutta!" in its theater (at one time the longest running show on Broadway). The show never made money, but because it was part of the hotel's business, its losses could be directly "written off" against the cost of running the hotel. As I understood it, the tax benefits were particularly advantageous to hoteliers. I don't know the details, but I do remember the situation (and stayed at the Edison during its run - although I never saw the show, something I now regret).