It was a war about imperial power. Democracy had nothing to do with it. Several great empires were battling for supremacy, and in the end those who had less industry and manpower lost. The entry of the USA into the conflict was the deciding factor in that calculation, as it was in WWII also.