Haha, i was taking N4 and N6, but didn’t figure the steps after that.
To win we need to let knight die because rook can move multiple steps to kill the king.
From a third person perspective R2 is a deceptive move that takes advantage algorithm to make the black king back off to kill its knight.
you could also just move your king on that move same result knight cant move, only king can, so it has to back away