She is just marking her territory. Dogs can tell many things by the smell of other dogs' urine and anal gland secretions. Sort of like how we can tell a lot about a person by their handshake (if its weak, if they have sweaty palms, etc). They also have glands between their toes that leave scent on the ground while they are kicking.