This seems like it might be a little selective.
What about these [1] [2] randomised controlled trials that show vitamin D supplementation has an effect on IBS symptoms?
Or this [3] double-blinded trial showing supplementation improved sleep quality in people with sleep disorders?
Or this [4] one showing improvements in depressive symptoms in overweight and obese subjects? The study cited in TFA is large but only uses participants aged 50 and above, with a relatively low dose of vitamin D.
Also, is it just me or is the line of argument used a little bit weak? You could use the same kind of argument to dismiss the need for dietary vitamin C, as follows: (a) vitamin C deficiency is associated with a bunch of other health conditions (as it's a marker of poor nutrition or socioeconomic status), so (b) let's look at the effects of supplementing vitamin C, which (c) naturally finds that supplementation does nothing for said conditions, and therefore (d) conclude that it is a pretty useless vitamin, while placing minimal focus on the things that it actually does fix, such as scurvy?
I am not an academic, so perhaps I am missing some context though.
[1] https://pubmed.ncbi.nlm.nih.gov/27154424/
[2] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5900470/
[3] https://tumj.tums.ac.ir/article-1-8272-en.html
[4] https://onlinelibrary.wiley.com/doi/full/10.1111/j.1365-2796...