Men aren't attracted to their own penises when they masturbate, they are thinking about inserting their penis into a woman.
By that logic having sex with a goat is a heterosexual act and not zoophilia/bestiality as long as you imagine you're having sex with a woman.