That's a good point. The association between vitamine D and coronavirus could be hidding a confounding variable: time spent indoors. Spending time indoors increases the risk of contagion and viral load. Also it's correlated with lower sun exposure and lower vitamine D levels.