Both Serbia and Austria-Hungary had powerful allies, and so when the archduke was assassinated, they declared and they both called on the help of their allies, essentially, every single important country in Europe including Russia and Germany, who were allies of opposite countries