This picture in the article is misleading:
https://static.wixstatic.com/media/3e0600_a25ba8bbf26b47a096...
At the very leat, vitamin D does seem to prevent respiratory infections. The article even admits as much later on. There are several RCTs that verify this. So why put a red cross next to "prevention of respiratory infections"?
Also, worth reading:
"Why randomized controlled trials of calcium and vitamin D sometimes fail"