Confusing decisions

I know it's been said time and time again about transfers and the Board decisions but one that confuses me is selling Rafa marin which has ended up not working for us or him hes played two matches both in the Cup why didn't we just keep him ? I know we were after Yoro but really shouldn't we have kept him and if we got Yoro sell him and if not we then keep Rafa? i don't understand that decision.