Germany entered the war because countries that were it allies entered the war first. Also Germany took that serious and offensive. Also they was already battling serbia.
https://www.enotes.com/homework-help/why-did-germany-enter-world-war-1-who-were-477873