Arousal isn't just confined to sexual behaviour. Anything that excites your dog excited can give him a slight erection, which will still result in part of his genitals emerging from the prepuce. ... The smaller your dog's prepuce, the more chance his penis will come into view.