There's one legitimate use in training the AI to recognize csam for purposes of moderating the platform without subjecting human moderators to csam. But if I were training an AI for that purpose I'd want special dispensation from the government, buy-in from victims rights groups, and be training it on stuff from evidence lockers so as to not generate any apparent demand.