It is an instinct ingrained in our DNA. From the moment species started requiring mothers to take care of babies for the species to survive, the individuals with the more motherly genes/tendencies were more likely to keep their babies alive and pass on those genes. So over a long long long time you are left with only the individuals who have those motherly tendencies/instincts ingrained in their DNA.
Latest Answers