Deductions & credits

Because you previously benefitted from the deduction of the depreciation, and you are now recovering the deprecation through the sale, it is taxable income.