So like Stuart Smalley, while I'm not a doctor, I have read a lot about it due to my own health problems.
The long and the short of it is that vitamin D is a hormone that takes weeks of supplementation to build up to sufficient levels. This hormone is instrumental in having a functional immune system.
With regards to covid, severity seems to depend on immune system response. So it's not unreasonable to think vitamin D is necessary but not singularly sufficient to prevent severe covid.