Medical problems
If your cat is peeing outside the litter box, the first step is to see a vet to do a physical examination.
Bladder stones and urinary tract infections (UTIs) are the most common medical problems in this situation.
These diseases cause pain while urinating.