Why does this happen to someone with OCD?

So a huge fear for me is dirty pavements and another huge fear for me is public toilets. I went out to pick up a parcel from a shop and when I parked my car and got out I noticed a tampon on the floor. Of course I freaked out. Had a shower, all the clothes in the wash and my lovely pink new balance trainers binned. Why does this happen to me? Why is it so unfair? Why couldn’t this have happened to someone without ocd? It just makes me not to leave the house even more than I do already.