The black king is stranded on g5, cut off from the pawn by your rook on the f-file. That distance is what wins, not the pawn: it will not move for ten moves.