A learning theory would emphasize that the process of reinforcement leads those with an obsessive-compulsive disorder to frequently repeat their compulsive behaviors.
People who had obsessive compulsive disorder will keep reinforce themselves that something will go wrong if they do not repeat a certain task, which eventually push them to do the a lot of their tasks over and over again.