OCD: Risk Factors
Kids with more negative temperaments and behavioral inhibition are more likely to develop obsessive-compulsive disorder, as are those with first-degree relatives who have OCD. Likelihood particularly increases with relatives who had child-onset OCD. Children who have experienced abuse or other stressful or traumatic events are also more at risk.
Some children experience a sudden onset of OCD symptoms associated with various infectious agents and a post-infectious autoimmune syndrome (also known as PANDAS or PANS).