Lack of logical reasoning.
In WWI the Germans were fought to a standstill in the west. The next few years the majority of the youth from four nations was killed (Germany, France, Russia, and England). Russia crumbled from with-in due to a revolutiona nd pulled out of the war, alas too late for Germany to move the millions of troops to the west. America provided enough manpower to halt any further advances in the west by germany. Germany fell apart due to economic and social issues in 1918 and sued for peace.
Russia fought a civil war and the Soviets came out on top, but it would be 20 years before they returned as a major player. The Germans fought a civil war too, not to the extent of the Russians, but along the same lines (Socialists/communists vs royalists/nationalists) however, the centralists took over just in time for the depression to hit. The nationalists/royalists joined forces and barely took control of Germany in the late 20s early 30s. The National Socialists barely took power in 1936.
However- The OP suggests because the Germans had National Healthcare and National Education in the 1890s, they almost won WWI. The English lost men at the Somme because they did not. I am assuming the OP meant the Somme 1918 and not 1916. The Maxim had more to do with losses than education.