Once that code is refactored inside those models the copyright becomes debatable.
This is something RMS noted too, see:
https://news.slashdot.org/story/21/09/18/0432224/richard-sta...
So, yes, they don't own it, but they might as well, because attribution after being refactored inside the AI model becomes vague.
That is the top of the "Boycott GitHub" iceberg.