The answer depends on where you want to start.
You can start with the definition of $\arctan x$, develop the series expansion for that, and then plug in $x=1$ to set the whole thing equal to $\pi/4$. Or you can calculate it geometrically the way Leibniz did.
Absent equating the series to some multiple of $\pi$ you can calculate two series that approach $\pi$ from above and below, and then squeeze out an expression for $\pi$ that way.
But the answer to your question is that often the series pops out from some expression which is already known to be a multiple of $\pi$.