It supposedly only occurs in dominant males asserting their territorial rights. If you have an older dominant cat (male or female) it shouldn't happen so often.
Of course, what a lot of people don't realise is, queens spray too. Female cats have been known to urinate in certain places as scent markers.
LTS