that's reproductive instinct. Human minds are different from animals in that human minds can supress their instincts and act in a more "civilized" manner. I'm sure that there would be some, if raised in isolation, that wouldn't be able to figure it out because they would try to figure it out instead of following instinct. The entire reason men are attracted to women and vise versa, is reproductive instinct.