Our previous dog was respectful (seriously respectful in everything she did) of where to poop. She’d aways do it as far away from the house and where people walked as she could. She also figured out on her own to pee before hoping in for a car ride.
With the current furbabies, you learn to walk with your eyes to the ground.
some dogs are frighteningly human in their understanding of the “human world”.