There is no single answer to this question as there are a variety of factors that can contribute to a child committing a crime. Some of the potential causes include:
1) Family environment - If a child is raised in a home where criminal activity is commonplace or where there is little parental supervision, this can increase the likelihood of the child committing a crime.
2) Peers/friends - If a child associates with other kids who engage in criminal activity, this can also increase the likelihood of the child committing a crime.
3) Personal factors - Some children may be more prone to committing a crime due to personal factors such as impulsivity, mental health issues, or a history of trauma.
4) Socioeconomic factors - Children who come from disadvantaged backgrounds or who live in areas with high crime rates may be more likely to commit a crime.
Ultimately, it is important to remember that there is no one-size-fits-all answer to this question. There are a variety of factors that can contribute to a child committing a crime, and it is often a combination of several of these factors that leads to criminal behavior.