The second fundamental theorem of calculus (Newton-Leibniz) tells us that:
If $f$ is a real-valued function on a closed interval $[a, b]$ and $F$ is an antiderivative of $f$ in $[a,b]$ s.t. $F'(x)=f(x)$, then $$\int_{a}^{b} f(t) dt = F(b)-F(a)$$
Say we have a real-valued piecewise continuous function $f(x)$ defined on $[a,b]$ which is made up of intermediate functions $f_1, f_2, ..., f_n$ for $x \in [x_1, x_2) \cup [x_2, x_3) \cup ...\cup[x_n, x_{n+1}]$
Using the second fundamental theorem of calculus, one may find an appropriate $F(x)$ s.t. $F'(x)=f(x)$, like
$$ F(x) = \begin{cases} \int f_1(x) dx + C_1 &\quad\text{if} \ x \in [x_1, x_2) \\ \int f_2(x) dx + C_2 &\quad\text{if} \ x \in [x_2, x_3) \\ ... \\ \int f_n(x) dx + C_n &\quad\text{if} \ x \in [x_n, x_{n+1}] \\ \end{cases} $$
My question is the following: why is it that when we evaluate $\int_a^b f(t) dt$, we must split it into the sum of $$\int_a^{x_i} f(t) dt + \int_{x_i}^{x_{i+1}} f(t) dt + \ ...\ +\int_{x_{i+k}}^{b} f(t) dt $$
instead of simply evaluating $F(b) - F(a)$ by selecting the appropriate antiderivatives from the piecewise function?
Example:
$$ f(x) = \begin{cases} x+1 &\quad\text{if} \ x \in [0, 2) \\ 1 &\quad\text{if} \ x \geq 2 \\ \end{cases} $$
An antiderivative of $f$ would be
$$ F(x) = \begin{cases} \frac{x^2}{2}+x + 2 &\quad\text{if} \ x \in [0, 2) \\ x+7 &\quad\text{if} \ x \geq 2\\ \end{cases} $$
Note the constants of integration $C_1=2$ and $C_2=7$
Clearly, computing $F(3)-F(1)$ does not give the area under $f(x)$ from $x=1$ to $x=3$. Even though intuitively it makes sense to break the definite integral into a sum, I am unable to come up with a straightforward reason as to why $F(3)-F(1)$ wouldn't give the correct result as long as I respected the conditions of the Newton-Leibniz axiom (maybe I didn't, but please let me know why).
EDIT: For a discontinuous function $f(x)$ on an interval $[a,b]$ with finitely many discontinuities, why do we need its antiderivative $F(x)$ to be continuous in order to apply $F(b)$-$F(a)$? No matter if it's continuous or not, $F(x)$ still won't be differentiable at $f$'s discontinuities, and its derivative would still be $f$. However, if it's not continuous, $F(b)$-$F(a)$ would no longer give the area under the curve. Why?
EDIT 2: Lebesgue Integration asserts that that an antiderivative $F$ differentiable almost everywhere must be absolutely continuous for $F(b)$-$F(a)$ (FTC 2) to work. So case closed.