I am having a little trouble understanding one of the steps in this proof. From Stephen Abbott's Analysis:
Using AoC to prove the IVT:
TO simplify matters, consider $f$ as a continuous function which satisfies $f(a)<0<f(b)$
and show that $f(c) =0 $ for some $c \in (a,b)$. First let

Clearly we can see $K$ satisfies the axiom of completeness, and thus we can let $c = \sup K$
There are three cases to consider: $f(c) > 0, f(c)<0 \space \text{and} \space f(c) = 0$
Part where I have difficulty understanding the proof . The author states:
"Since $c$ is the least upper bound of $K$, we can rule out the first two cases. "
I don't understand how we can conclude this immediately?
Thinking about it, if $f(c)>0$, then $c \notin K$ so this would contradict $c$ being a least upper bound.(Right?)
However, how can we rule out $f(c)<0$? Here $c \in K$, which is a valid least upper bound?