Your king is beside the pawn rather than in front of it, and the pawn needs one more square. The winning setup is the oldest rule in rook endings: the rook goes behind its own pawn, and the king takes the promotion square.