It turns out they poop following the Earth’s magnetic field. I want to believe it.
Dogs are not actually agents of chaos, apparently
Via
https://www.smithsonianmag.com/smart-news/can-humans-detect-magnetic-fields-180971760/