The original study[1] doesn't suggest a connection between lactase persistence and vitamin D. It does discuss those topics in close proximity, though, which I suspect misled the author of the (popularizing) Science article.
That is the driving force for lighter skin (unless your diet is mostly fish, such as the Inuit). Skin gets darker again when migration towards sunnier climates happens: while UV light is essential for the synthesis of D3, it also destroys folic acid / vitamin B9 [1], which is essential when the neural tube of a fetus is being formed.
And since this mutation is so very visible, maybe here sexual selection plays a role, just like it is suspected with blond hair?
1: https://www.sciencedaily.com/releases/2014/03/140321095240.h...
In Asia, light skin evolved separately and is using different genes.
The Ethiopian highlands have been historically productive in agriculture. Agricultural diets contain less Vitamin D, increasing the selective pressure for lighter skin tones.
The highlands are also cooler than other regions of Africa at similar latitudes, resulting in more clothing being required on average. More clothing necessitates more UVB absorption per unit of skin exposed, which would further select for lighten skin tones.
SLC24A5 is an interesting gene - I don't think Vitamin D is the full story. It's an SNP that is alone responsible for 25-40% of skin tone difference between Europeans and West Africans, and is virtually fixed in European populations (99%). However it's also under selection in places like the Ethiopian highlands, where sun exposure is presumably not an issue. Furthermore, if it were just about Vitamin D, you would expect that just about any loss-of-function allele would do. Compare to mutations that confer malaria resistance - there's a whole wikipedia list: https://en.wikipedia.org/wiki/Human_genetic_resistance_to_ma... - why do we not see the same for skin tone variation in Europe? Why is this single point mutation omnipresent, if it's theoretically only lightening the skin so that Vitamin D synthesis is easier?