Jeph has hinted that it was partly accident and the researchers did not know why or how they succeeded. It was a strip where Winslow asked Hannelore the origin question.
Humans are like Tolkien's elves, always wanting to wake things up and talk to them. Whatever practical goal there was, I think the fundamental driver was to have someone to talk to. That ties in with the early and wide success of companion AIs.