The problem is these laws were created when creating derivative work was not scalable.
Just a year ago to create a painting you have to spend years learning how to paint, studying the works of the old masters, making and improving your own works. Each new paintings take less time than the last, but the hours dedicated to create new work, either a masterpiece or a book cover, is never insignificant. To create a variation take almost as much time. To change to a new style you have to start the learning process all over again. It is hard, but you put your personal time and efforts to it. If your work was inspired by others, as long as it is not a blatant copy, the original authors will certainly feel appreciated, even if they may not like it.
Now all it takes is a text prompt and a few clicks, and you can create images in any style, from any author, with as many variations as you want. Code snippets generated by Copilot is not currently in the same league, but I think we can all agree that it is only a matter of time before a whole project can be created with a requirement prompt, certainly in the same style as the author or authors of the individual packages the AI was trained on.
The difference is industrial scale harvesting of creative efforts. Somebody admiring your works and spend time and efforts trying to learn from you is okay. If they become famous and make a lot of money you will be credited as their inspiration and at least an influence on their success. An AI blindly scanning and blending and making mass copies of altered works to make a corporation rich is not; in the corporation's eye the original authors, from the old masters to the modern amateurs, are all no different than unpaid slaves producing textiles in a mill somewhere to be fed into a machine to create mass produced clothing.
Sure all the training data are taken from publicly available sources with permissive license, but those licenses are created when we still think creative arts will be the last AI frontier, which wasn't event that long ago. If you could have foreseen that the license you chose back then would allow a corporation to profit from your work, would you have made the same choice?
So I would argue that from now on, training AIs on publicly available data must be banned, except where the work is on public domain or where the license explicitly allow the work to be fed as training data for AI models. If a law is not explicitly passed, current permissive licenses such as Creative Commons should be revised to include a clause addressing this point and let the author decide whether to let AIs train on their work or not.
I feel like having such a law or licensing convention established as soon as possible will greatly benefit humanity in the long term. In the short term we all want more free content, but once AIs start taking over all jobs now performed by human, creative arts will be the only source of meaning left for us in the future.