On the way the doggy usually snoops and licks other dogs ass. That ignites his own sexual phantasies and it happens that he jerks off at a quiet place following his dirty phantasies. And it wouldn't be Rasto's doggy if doggy wouldn't follow his example ;-