It's very seductive to argue from an evolutionary advantage perspective. It can be used to generate Hypotheses that need testing. But one shouldn't give health advice based on it. After all we brush teeth, wear clothes and benefit massively from machines and modern medicine.
It's about sane defaults. The effort to validate every reasonable hypothesis is extraordinary, and sometimes impossible. We can't afford to live our lives based only on what conclusions science has been able to come to so far. Making some choices based on ancestral norms is perfectly acceptable and better than many alternatives.
Then you don't have to follow that complicated evolutionary logic style thinking. (I know it's very trendy right not) In the end Nature isn't smart and can't think.
The obvious fact is that we evolved to live under at least some sun exposition (depending on your genetic background), trying to replace that entirely with pills is backwards.