First of all, who is going to discover the closed source use of gpl code and create a lawsuit anyway? Second, the llm ingests the code, and then spits it back out, with maybe a few changes. That is how it benefits from copyleft code while stripping the license. Maybe a human could do the same thing, but it would take much longer.