Marking dogs like to urinate on a high surface such as a tree because the urine flows downward and marks a larger area.
A puppy whose testicles have not dropped or a young male who has already been neutered don't have the desire to mark that drives older, intact males.