It's not a matter of knowing that a specific war is coming, it's a matter of preparing for what may come. Wars (or, at least, situations which require military intervention) happen all of the time. As such, we will always be preparing for the next one.
The point is that humans are always fighting with one another. Until that stops there will always be a war looming.