Proposition $\pi_1(S^n)=0$ if $n \geq 2$.
Let $f$ be a loop in $S^n$ at a chosen basepoint $x_0$. If the image of $f$ is disjoint from some other point $x \in S^n$ then f is nullhomotopic since $S^n - \{x\}$ is homeomorphic to $\mathbb{R^n}$, which is simply connected.
This is from Hatcher's algebraic topology. The second sentence seems to come out of nowhere. Does anyone have another explanation as to what the second sentence means and is aiming for?
That second sentence does not come out of nowhere, it comes out of a case analysis: given a loop $f : [0,1] \to S^n$, $f(0)=f(1)=x_0$, either $f$ is surjective or nonsurjective.
That sentence handles the case where $f$ is nonsurjective.
Now it's time to handle the other case: suppose $f$ is surjective...