It wasn’t that. Austria suspected Serbia to assist in the assassination (which they might have), so they declared war. Serbia was allies with Russia and France, so they all declare war on Germany and Austria. Then Germany tried to get around the maginot line by going through neutral Belgium, and Britain showed up to stop Germany from attacking neutral countries.