It's better when people disclose that they've used AI esp. in regards to the licensing issues you highlight.
Why? Well if they hid it you get ticking bombs in your code base. Otherwise you at least know what you've to refactor once the house of cards falls down...