What happens when you pee on an electric fence?

The one time I went for a walk with my male cousin and his friend and we reached a fence and when the touched it it gave them like a static shock. We got back home and told my aunt, who said jokingly that they should have peed on it. They didn't and I've been wondering ever since then (it was a few years ago) what happens
What happens when you pee on an electric fence?
Post Opinion