I recommend reading the whole article (link below), but here are some highlights:
- The lactase gene is needed to digest the lactose in milk.
- Babies are born with the lactase gene, but it switches off in most people around age 7 or 8.
- In prehistorical times, it switched off in everyone.
- About 7,500 years ago, a genetic mutation appeared in certain populations that allowed the lactase gene to function even in adults.
Here is the article: The Milk Revolution
Some of the conclusions in the article are controversial. I recommend reading the comments, too. I like this comment: "I think we're only beginning to understand what's going on here."
UPDATE 4/01/15: This article in the Economist is about a similar theme:
No use crying: The ability to digest milk may explain how Europe got rich