Why do male pigs have teats?
Females are the default of sexual reproduction, because the male chromosome is so much smaller than the female chromosome. Therefore, if there is a specific mutation on the male Y-chromosome, it is possible to create genetically XY females. This means males are always formed with female characteristics - such as teats on a pig. The male genitalia is a transformation of the initial female system.