Why do animals go to the bathroom on logs?

only male animals go to the bathroom on logs. Males are generally created competitively, and they mark their territory on logs, because of power. Spraying on a tree or something similar makes the scent more noticeable than if they simply peed on the ground, where it will soak in and disappear.