The following is the Theorem 6.17 of the book Apostol's Analytic Number Theory:
My question is that I don't understand why is it necessary for $f$ to be a non-negative function and $f'$ to be negative for all $x\ge x_0$? (esp. it has not been supposed the function to be non-negative in Abel's identity, i.e. Theorem 4.2)

The reason why $f'$ is to be negative is for the integral bound $$ - \int_x^y A(t) f'(t) dt \ll \int_x^y (-f'(t))dt. \tag{1}$$ If, for instance, $\chi(n) = (-1)^{n+1}$ is the nonprincipal character modulo $2$ and we took $f(x)$ to be something like $f(x) = \cos(\pi x) + 1$ (which is nonnegative but with oscillating derivative) then $$ \sum_{n \leq X} \chi(n) f(n) \approx -X/2.$$ This is not bounded by $f(X)$ and as $X \to \infty$, it does not converge.
In the bounding of $(1)$, one probably appeals to the integral mean value theorem. Recall that if $m \leq h(x) \leq M$ and $g$ is nonnegative, then $$ m \int_a^b g(x) dx \leq \int_a^b h(x)g(x) dx \leq M \int_a^b g(x) dx.$$ This is really just a simple application of the intermediate value theorem, but it rests pivotally on $g$ not changing signs here.
In the bounding of $(1)$, we apply the integral mean value theorem with $h = A(t)$ and $g = -f'(t)$.
The reason why $f$ is to be nonnegative is because the result is stated in terms of $O(f(x))$, which does not make sense if $f$ is negative.