Urine contains various pheromones that carry important details about an individual dog's identity, reproductive status, health condition, and even emotional state. When dogs pee on trees (or other objects), they deposit these scent markers for others to detect and interpret. It's their unique way of leaving "pee mail" for fellow canines to read.