Your rook cuts the black king off two files from your b-pawn, the same setup that wins with a centre pawn. With a knight pawn it is only a draw, and that is a rule worth memorizing.