It's been tried. PCB design is a huge industry. And it has just not worked. I was of the same opinion you have but it's not like there has not been millions and millions invested into this without real impact. Every year there is a new sway of companies that tries. Perhaps AI is now good enough, I'm not holding my breath.
It's also been tried in the mechanical world ("Generative Design" in Autodesk's language) and it's still mostly in the "cool demo, bro" phase. The parts end up being expensive and difficult to manufacture due to the unusual geometry. You're penalized for exploring the design space because it runs on cloud credits (more exploration == more cost). Just not very compelling yet.