He most likely had bad OPSEC.
Secondly, he took this imagery he had created and then "turned to AI chatbots to ensure these minor victims would be depicted as if they had engaged in the type of sexual contact he wanted to see." In other words, he created fake AI CSAM—but using imagery of real kids.
This probably didn’t help much either.