Leg-lifting is instinctive in dogs of both genders. It serves several purposes:
Marking Territory
Dogs have scent glands in their paws, and leg-lifting releases pheromones that signal ownership of an area to other dogs.
Communication
Urination conveys information about social status, reproductive status, and health.
Scent-Marking
Dogs rely heavily on scent to gather information about their surroundings and track other animals.