It’s not obvious that training a model on GPL code would constitute a breach of the license.
Plus, the stack's latest version contains at least one GPL repository which their license tool failed to detect. So it's not something hypothetical in the first place.