Outdoor workers actually have a significantly reduced rate of melanoma. Sun exposure increases risk of carcinoma, which is almost never fatal (in fact, knowing nothing else about a person, diagnosis with a basal or squamous cell carcinoma implies a longer expected lifespan). Source: https://www.outsideonline.com/health/wellness/sunscreen-sun-...
Regular exposure to sunlight, in amounts insufficient to cause burns, is probably very good for us. And why wouldn't it be? Life tends to find and use all advantageous resources at its disposal--so of course a diurnal animal with lots of skin collecting sunlight would have evolved all sorts of processes to put that sunlight to beneficial use.
Even if you have fair skin, there is no significant cancer risk from 10 minutes of daily sun exposure. (The exception would be some very rare genetic disorders which cause rapid development of cancers.) But sun exposure alone might not produce the recommend vitamin D levels for some people, especially those living nearer to the poles.
Regular exposure to sunlight, in amounts insufficient to cause burns, is probably very good for us. And why wouldn't it be? Life tends to find and use all advantageous resources at its disposal--so of course a diurnal animal with lots of skin collecting sunlight would have evolved all sorts of processes to put that sunlight to beneficial use.