I can assure you, whether it was the intent or not, that the message got out in the 1980s and 1990s that all sunlight exposure is uniformly bad and its only effect is to increase your likelihood of skin cancer, so everyone should avoid it and unconditionally use strong sunscreen for any exposure.
See https://www.canada.ca/en/health-canada/services/sun-safety/s... for one example of an official health authority advising people to zealously avoid sun exposure, with no mention whatever of vitamin D deficiency or other downsides of not getting any sun.
I can assure you, whether it was the intent or not, that the message got out in the 1980s and 1990s that all sunlight exposure is uniformly bad and its only effect is to increase your likelihood of skin cancer, so everyone should avoid it and unconditionally use strong sunscreen for any exposure.