A compulsion often works in the immediate moment: distress drops, uncertainty feels smaller, or the situation seems safer. The problem is what the brain learns from that relief.
If relief seems to depend on checking, reassurance, avoidance or mental review, the next trigger arrives with an even stronger instruction to do the same thing again.