That is a reasonable hypothesis. Also, people who are very ill are less likely to get outside and get enough sun, so they will develop low Vitamin D. Vitamin D is likely a marker of poor health. (Once the Vitamin D gets low enough, we do see direct harmful effects from it (think rickets in children), and this may contribute to poor health at that point.)