Believe it or not, but there was a time where algorithms were worse than humans at layout out transistors. In particular at the higher level design decisions.
That’s somewhat still the case, humans could do a much better job at efficient layouting. The problem is that humans don’t scale as well, laying out billions of transistors is hard for humans. But computers can do it if you forego some efficiency by switching to standard cells and then throw compute at the problem.