What's interesting about this study in Swedish women is that if you look at the results section the high sun exposure group has the highest disposable income and most years of education. Low exposure has the lowest disposable income and least years of education. Probably because for Swedish women high sun exposure means travel which is expensive.
It's hard to say if the study measures sun exposure or the ability to stay healthy with a higher income & better education.
More likely, there's a optimal amount of sun that you should get to live the longest and Sweden provides less sun than that.
This is especially likely since, as another commenter pointed out, they corrected for wealth factors already!
Stockholm is at 60N, the university that did this study, Lund, is at 55N. If you live further south than that, you might be getting optimal, or even more than optimal, amounts of sun even without sunbathing.
Disposable income and education are adjusted for.
https://onlinelibrary.wiley.com/doi/10.1111/joim.12496#joim1...
I eat my money to live longer
This is the dirty secret about any health study that can be impacted by socioeconomic status: if it can be impacted, it is. More money, fewer problems. 99% of the time.