Arbitrage in both directions - if done incorrectly, you still lose money. You still pay the funding rate on the contract side when selling, and it ultimately does not make a profit.