This behavior is typically found within male cats and known as territorial markings. To resolve this issue, neutering is performed.
Dr. Muhammad (DVM) - University of Veterinary & Animal Sciences (UVAS)
DISCLAIMER: All questions have been written purely on experience-based facts and researching authentic scientific publications by a certified veterinary physician. All Rights reserved. You should always seek further advice from your own local veterinarian.