The a-pawn does not have to queen to win, though it often does. Either way it pulls the defending king to the edge while your king takes everything on the other side.