Anyone who has a dog knows that dogs sometimes like to pee everywhere, especially when they are outside. For dogs, urination is actually a powerful sexual “pleasure”. Female dogs will try to pee anywhere if they are able to move around during their heat period.
If a female dog can move around during estrus, she will try to urinate anywhere she can, in order to make her presence known to the male dog and to entice the male dog to approach her
This is because female dog urine contains a chemical odor that attracts the attention of male dogs.
Male dogs do the same thing, but males have another role to play in defining their sphere of influence and drawing the attention and avoidance of other males.
Baby dogs like to pee in corners, lampposts, tree heads, garbage cans, fire hoses and door frames, and then scratch with their hind legs.