Same way that your genes tell you that sugar is tastey, girls are pretty, and sex feels good.
There’s patterns in the genes which tell the cells in your brain how to get made. Brains are not entirely blank slates where everything has to be learned. Some bits are hard-wired or baked-in. We’re specifically wired to learn languages btw. We’ve got dedicated hardware for it. Some of that also influences things like… behavior, personality, and fight-flight responses. And to go make babies at puberty.
Latest Answers