We don't know the source of the vitamin D: For example it's entirely possible that the type of person who has higher vitamin D levels is the type of person who takes care of themselves through things like vitamin supplements, and people who take care of themselves are less likely to have preventable underlying conditions.
So, as always, it's important to remember that this study was retrospective, not experimental in nature.