Can you send game link?
My guess without seeing any of it is that the Rook is pinned
Same.
Do you mean the final position? If yes, then it is because your king is in check (the + symbol in the final move 20... Ke6+) although you should have on legal move with the rook left (parrying the check with 21. Rf7).