There is a gland in the anus that holds the spray for when it is needed. The spray is not pee. It is a special oily concoction that is made for the express purpose of deterring preditors. Actually,...
Skunks have a special gland that produces the liquid spray. A skunk lifts its tail and releases the spray when it is scared. It creates a terrible stench that wards off predators and makes skunks...