They didn't say "you can't use JavaScript to deal in private data" - the laws are not tied to a specific technology. Ignore the "AI" part, ignore ChatGPT and Bard. What *effects* are important? What rights need protected? Because those effects and those rights need to be protected *anyway*, regardless of what technology you are protecting them from.
US law is littered with that. Very often it has been a way to score points on being "tough on crime", making things that are already illegal even more illegal. Other times it is because of prosecutors who fear that the courts won't enforce the laws the way they want so they don't bother the lawsuit without a very specific law on the books. In the end we get tons of ultra-specific laws dealing with a specific technology or a specific method of doing things, and then we have the general form that doesn't get enforced at all.
As a simple example, fraud itself is illegal under federal law. It's an easy read, and covers what needs to be covered.
Then we have specialized laws on mail fraud, wire fraud, credit card fraud, healthcare fraud, check fraud, access card fraud, insurance fraud, tax fraud, securities fraud, privileged information financial fraud, bankruptcy fraud, mortgage fraud, loan modification fraud, computer fraud, identity theft fraud, citizenship fraud, mass marketing fraud, and so many more. Each with different requirements, different consequences, different severity.
There are similar trends at the state level, they're constantly in the news. Recent years has seen it in LGBT related laws. One of many has been all the states going for bathroom bills, even though there are already laws about sexual assault, voyeurism, sexual exploitation, and so on, the criminal element is already covered and prosecutors have no shortage of crimes they could charge an offender with, but instead they want it to be even more illegal not because it reduces offenses, but because it targets an unpopular group. Similarly with racist laws, and less common today but also sexist laws, the thing they claim they want to regulate is already regulated, but the extra laws are to punish or control a specific group rather than being good, broad, all-purpose regulations.