That's an orthogonal matter (if the gain/loss was calculated correctly).

But they didn't just move gold bars around, is my point, and in what they did (sold, rebuy) there indeed was an opportunity to make a gain.