It’s called taking a big bath. Every single business does this. You have a bad year and then say what the hell, sell that failing business and take the big capital loss to use for many years later.
People do it too when stocks crash. You sell at a big loss, invest it in something else and in a few years later make it all back and more but that original big loss is still on the books saving you tons of money.
With all this Trump Tax Talk I just remembered something:
In 2018, Amazon paid $0 in U.S. federal income tax on more than $11 billion in profits before taxes. It also received a $129 million tax rebate from the federal government (CNBC)