He was under the age of 18 which was the lower limit of the Confederate Conscription Act.
The Confederate Conscription Act. April 16, 1862 – President Jefferson Davis signed a bill into law requiring all able-bodied white men between the ages of 18 and 35 to serve at least three years in the Confederate military. This was the first national draft in American history.