Respuesta :
They were already trapped, and huge canons were pointed against them. So, if they didn't surrender, the canons would fire and they would be likely killed.
Lee finally decide to surrender during the Civil War because he ran out of manpower, and his few remaining troops were barefoot and starving.