Why was World War 1 longer than expected?

USA entered war

1917 Russia signed treaty with Germany and left war

no longer needed to defend Eastern front