Clean the litter box every day. If you have more than 1 cat, then each cat should have their own litter box. If that doesn't work, your cat could have a UTI. They tend to not pee in a spot that has given them pain so they try somewhere else.
I have an abused and dumped cat that did the same thing. Different circumstances. It took a lot of patience before he trusted that he would never be beaten. Then 3 years later, the behavior went away. I protected the furniture with upside down carpet runners whenever we left the house. He would not step on those pokey plastic nubs. We also put him in a small room at night. If he peed on his kitty bed, he had nowhere comfortable to sleep. The sprays were not effective. I had another declawed cat that didn't like the more expensive litters. (Another dump.) His feet were probably too sensitive for the odor reducing chemicals. I changed brands to the generic basic clay litter, and the problem was solved. You may also wish to take it to the vet to be sure there is no medical reason.
Try changing the litter, getting another box, or if you do have two boxes keep one empty, though your cat may prefer several boxes. My cat, Lila, will pee in a box with litter but not poop in a full litter box, as she prefers to poop in an empty one. She will only use it once, so if she uses it I must clean the single poop out before she will use it again. If I am not around to get it after, she goes wherever she pleases. Her favorite spot is on my pillow, and I don't particularly approve of her choice. If she does not have access to my room, she goes in the bathtub or on top of the toilet lid. Like people, cats are extremely finicky. They have preferences in the slightest things. things like: the shape of food, the texture of food, the grain size of litter, or the shape of their water/food dish can upset them if they are changed in the slightest. Some cats, it comes with their age. Just depends on their environment, age, personality, and preferences.