Let $f:(a\,..b) \rightarrow \mathbb R$ and $F:[a\,..b]\rightarrow \mathbb R$ be two real functions. Let $F$ be differentiable on $(a\,..b)$ and continuous on $[a\,..b]$. Let $f$ be continuous on $(a\,..b)$. Then $F$ is called an antiderivative of $f$ with respect to $x$ iff $\forall x \in(a\,..b):F'(x)=f(x)$.
Why, in this definition, does $f$ need to be continuous on $(a\,..b)$? Why isn't $F$ considered an antiderivative of $f$ when $\forall x \in (a\,..b):F'(x)=f(x)$ but $f$ isn't continuous?