[1] France wanted revenge since the Franco-Prussian wars, Germany wanted a repeat of the Franco-Prussian wars, Russia wanted revenge since its humiliation in a prior conflict (It was ready to go to war over another crisis in Serbia, but then backed down when it became clear that it would not win), and Austria-Hungary wanted to bring its unruly Balkan subjects under its heel.
Everyone involved was itching for a fight for decades.
[2] The British did not make it clear to the Germans that they would actually enter the war (Which probably would have dissuaded them from starting it.) The Germans gave the Austro-Hungarian empire a free hand in deciding German foreign policy. The Austro-Hungarian empire counted on the Germans bailing them out, and for a repeat of an earlier standoff with Russia. (Without taking into account that Russia, instead of standing alone, as it did in their previous conflict, picked up France and Britain as allies.)
All of this played out in slow motion, over the span of a few weeks, prior to the war beginning in earnest.
World War I, due to the prevalent myth of offense dominance that fueled the mobilization feedback loop that led to the war, is pretty much the exact opposite, so, yeah, it's pretty far off.
But basically the idea is that everyone knew a straight-up fight between major powers would be an ugly grind. But national armies take time to mobilize. So you want to mobilize early and try to win before everyone else catches up. This means that once it looks like things might kick off, everyone immediately goes all in. But if your sucker punch fails, buckle up for WWI.