The Sun isn’t to blame for skin cancer.
For that you need to blame high intake of polyunsaturated oils and fats in the diet that suppress immunity to the cells of your body.
I bet lots of sunscreen products contain them as well.
My first thought was people out in the sun, compared to inside, may have healthier lifestyles in general.