For these programs to generate photos of naked people, or to edit photos to make people look naked, they need to be trained on a large database of images of naked people
Do you think these companies paid for all that porn?
Creating programs that offer these features involved disrespect for sex workers before it even gets released
This is basically the problem with stolen art generally, but applied to a group who's labour is systemically undervalued and who are often marginalised
Also consider the gender aspect; sex workers are mostly women, the people running these companies are overwhelmingly white men