Your king is far from the b-pawn, so for a few moves the knight must keep it alive alone. The rule: a knight defends its own passed pawn best from behind. If the black king takes the knight there, he is left outside the square of the pawn.