People suffering from obsessive-compulsive disorder perform a certain behavior or routines under the compulsion to prevent or get rid of their obsessive thoughts, which becomes difficult to control. It's their anxiety or associated nervousness that forces them to feel the urgency in performing these repetitive rituals or routines.