The cliche understanding is that dogs mark their territory with pee. At times I’ve been on walks with family and friends with half a dozen dogs. There have been occasions where they form a line just to pee in the same spot.
So how does the ownership work? Is it like a co-op? Last one to pee wins?
Dogs don’t enforce territorial ownership so the pee is mostly just “I was here”. Anxious dogs might pee in inappropriate areas as a way to feel safer. In wolves the markings are more serious. They will enforce their territory so its more of a “leave or we’ll kill you” kind of thing.