Why did Robert E. Lee surrender to the Union Forces to end the American Civil War?

Hey had no troops. He was using men older than 60. And kids younger than 9!