WWI commanders were NOT sociopathic idiots who gleefully sent 300 trillion men to die for a single inch of land. They were simply unprepared for a large-scale war since WWI was the first such conflict in years. They also could not adapt quickly enough to developments (such machine guns giving defenders a massive advantage), since most happened as the war raged.