Why Did The Confederates Finally Surrender At Appomattox?

Why did Confederates surrender?

.