It may have to do with the fact that thousands of years ago, depending on where people lived, milk was a source of food, calcium, and vitamin D. So people kept drinking cow's milk even after they stopped nursing (breast milk also contains lactose), and their bodies continued to produce the lactase enzyme to break it down.