But isn't the reasoning there that you could turn around and sell that building right away?
The reasoning behind depreciation is matching the income produced by the valuable asset, not really about resale value.
Presumably the value for tax purposes is based on the cost because the cost is harder to manipulate for something like software. Like some big box stores argue under the "dark store" theory they should be valued for much less because they have restrictive covenants banning competitors from using the property if sold, or that vacant property should be used as comparables.