Also called: hedging.
Betting the opposite side of a position you already hold, to lock in a result rather than ride the outcome. It reduces expected value and buys certainty, which is sometimes exactly the right trade.
See also: Arbitrage, Cash out, Futures