As background, because healthy people tend to get out more there's always going to be a correlation between health and vitamin D levels. That means that most media articles gushing about a new vitamin D to health link are almost always worth ignoring. However, in the case of the Covid-19/vitamin D negative correlation it was much bigger than you'd expect by that route. Then someone actually did a randomized controlled trial and found a protective effect.