Prices can move while your swap is on its way. If the price moves more than this, the swap is cancelled and your tokens stay in your wallet.