Cats spray urine on upright objects such as walls, chairs, and curtains to mark their territory.
Neutering can diminish this behavior.