It is when it's offset by an identical gain, at a different tax rate.
The scheme works as a whole, but the dynamics of it have nothing to do with losses being valuable commodities. It's just an over-clever writer trying to jazz up the explanation without realizing they're saying nonsense in the process and introducing a bad model.