What is the logic behind making military bootcamps intensive?

You have to train 18 year olds to run to the sound of gunfire and perform under fire and the threat of death. This act defies all “logic,” goes against all human instinct, and takes one of the most intensive acts of psychological reprogramming to overcome.A few assumptions with the question, however, have to be put down along with  a few myths about bootcamp and