You might want to look into AI training more. It literally does have a '???' step to it, which is why whenever someone talks about how it was 'programmed' or is "just if/then or matrix multiplication" they are telling on themselves as not knowing what they are talking about.
It was not planned. Nearly every single expert in the field a decade ago was on the record saying the capabilities that exist today wouldn't happen.
Scaling took pretty much everyone by surprise, even its proponents.