Humans have acquired knowledge about their environment through many observations. Today, humans have wide variety of resources to gain knowledge about reproduction in human beings and other reproductive processes. This knowledge does not come from genes. But on the other hand the animals example pig don't have any kind of resources which teach them about reproduction, still they can perform their reproductive processes. Even an isolated mice can do so if a mate comes in his vicinity.
But the isolated mice doesn't have any knowledge about reproduction then how can they perform it? https://animals.mom.com/how-a-pig-reproduce-2607021.html