I use to have a male dog that lifted his leg on small children.
I think he was getting back at all the small children who hurt him in the past.! (you know how some children don't mean to hurt them but do just because they aren't as gentle with them as they should be)