My very first dog, Sheba, a.k.a the best, smartest dog in the whole wide world, was a female Shepherd mix who lifted her leg just like the boys - in fact she was literally the leader of the pack on their morning route through the nieghborhood. It IS a marking of territory, a sort of "signing the guest book" at all such spots!