Why do cats spray urine?

Cats usually do this to signal their presence. They do this to scare other animals such as cats or humans into leaving their habitat. They usually want to live comfortably and peacefully, but when this is disturbed, they become very angry. But why do they do that?
Both female and male cats spray their urine, but male cats are slightly more likely to do so. Because male cats want to let the cat of the opposite sex know he’s here.
Cats usually do this to claim their own space.
If you move any furniture in the house, they feel neglected and afraid. By doing this they spray.