You got it admit, it is a good suggestion. It just wasn't the right one. But it is trained well enough to correlate left and right together. Since those are very commonly associated together it is certainly a logical choice.
Within IDEs people go out of their way to install Intellisense so that "shit randomly pops up while they're typing." There are companies whose whole existence depends on people wanting that to happen.
Ah, come-on, why do you think Eliza could do that 60 years ago?
(It couldn't. It's at most 40 years old technology, and way more likely just 30. Even though you could program Eliza to do something like this, it would be way too specific for any use.)