It is unlikely that buildings would be dismantled as the cost of dismantling may exceed any sale proceeds of the second-hand materials.
Anyway the point, which you may agree with, is that a subsequent owner of a business, building or shares is an investor in a productive asset. The product from which is taxable except in the case of a residential building occupied by the owner.