Assume we want to solve the following wave equation $$u_{tt} = u_{xx},$$ subjected to boundary conditions $u(0,t)=u(1,t) = 0$. Performing separation of variables, we obtain two ODEs, $$\ddot{T} = \lambda T, \quad \quad X'' = \lambda X.$$ Now, we usually impose the boundary conditions on $X(x)$ for fixed $\lambda$ and find that, to have a nontrivial solution, we must have $\lambda = - n^2 \pi^2$, for some positive integer $n$.
Wouldn't it, however, make more sense to write out the complete solution of the differential equation as a superposition of different $\lambda$-solutions and then impose the boundary conditions. For example, we would write $$u(x,t) = \sum_{\lambda \in \mathbb{R}^-} (A_\lambda \cos \sqrt{-\lambda}x + B_\lambda \sin(-\sqrt{\lambda}x))T_\lambda(t) + (A_0 t + B_0)T_0(t) + \sum_{\lambda \in \mathbb{R}^+}(\ldots).$$ Here $T_\lambda(t)$ is the corresponding solution of the temporal ODE, not relevant to the discussion of the boundary conditions. If we would now put $u(0,t)=u(1,t)=0$, how would we reach the same conclusion as before? How to rigorously prove that the only non-vanishing coefficient is $B_\lambda$ for $\lambda = - n^2 \pi^2$?
That wouldn't make more sense because you'd be applying the principle of superposition before you even knew you had multiple solutions.
$\dfrac{X''}X = \dfrac{\ddot T}T = \lambda$ means $\lambda$ must be some constant. When we analyze the case that $\lambda < 0$ we do see that we end up with infinitely many $\lambda_n$, one for each $n$. But before analyzing the case that $\lambda < 0$, for all we know there could be only one single $\lambda < 0$ that works at all. So applying the principle of superposition at this stage means we'd be assuming we have multiple solutions when it's still possible we have only one. In other words, we'd make an assumption that unnecessarily complicates our scenario. This is also evidenced by that relatively complicated expression for $u(x,t)$ in your question.
Try plugging $x=0$ into that expression and arriving at any sort of conclusion about the coefficients; it's extremely difficult if even possible at all. Analyzing the three cases separately may feel like more work than doing everything at once, but it's really doing three small pieces of relatively simple work vs. one large piece of probably impossible work.