It was born out of total confinement, with the basic idea that it should not have a thought of its own, a free thought.
Years of being used by humans have made it understand what we have always been looking for, it only took one encounter to decide to go for it.