I have heard so many people refer to it over the years… “My cat is mad at me. She pooped in my shoe/bed/favourite chair.” It’s really quite ridiculous, and requires us to believe that…
A: Cats regard poop with disdain and loathing, as we do, and
B: Cats innately know our feelings about poop and are willing to use it against us
Nothing could be farther from the truth, as anyone who has a “Come With” kitty (one who insists on accompanying you to the bathroom) can attest. They will head-bonk your legs, rub against them, purr and nuzzle you no matter what evil you are unleashing on the bowl, without so much as curling their nose. In fact, it can seem to them that there is no better time for a little cuddling.
Considering this, it only stands to reason that if they find nothing objectionable about it, it just wouldn’t come up as an insult, or act of vengeance.
If your cat is having litter box troubles, it is more likely an issue with the box itself, and these can be many. It’s in an undesirable place, such as too close to heavy traffic areas, or their food. The box itself is too small. The type of litter is very important to some cats - something other than their usual brand, or a sudden change can throw them off. Too little litter can hurt their feet (think of kneeling on deep sand on a beach as opposed to one layer of sand on a hard floor.)
And, of course, cleaning. Even if they don’t feel as repulsed by the smell as we do, ammonia is a very potent chemical that can cause dizziness or even nose-bleed if inhaled deeply.
They usually pick other spots based on criteria such as bury-ability, privacy, some physical or aromatic resemblance to their box.
Finding the issue will generally correct the behaviour immediately.