I myself have Ocd and I usually only having a compulsion to clean if say, I have intrusive thoughts about bugs in my flat or that I'm going to pick up a bug because I have a severe phobia of vomiting, which can cause me to clean my hands a lot.
However there is much more involved with Ocd.
You can have horrific thoughts and images in your head of the worst thing you could possibly think of doing in that moment and you may feel like if you don't, check the oven a certain amount of times, your flat will burn down.
So sometimes a person may be standing at the oven trying to convince themselves that it is off and that if they leave, nothing will happen.
For me, trying to leave the house can take time and cause a lot of anxiety because I need to check everything is off. That the windows are shut and there is nothing near the other and it can take several minutes to convince myself the front door is locked.
Sorry. I hope this makes sense.
