Cat spray can help mark territory and attract mates, so it's an important part of feline behavior. Cats may start spraying indoors if they feel stressed due to other pets or limited resources.