It was created by humans using the power of science. It has been given artificial intelligence that enables it to learn new gestures and emotions on its own.
AI has been installed in it. It learns various things all on its own, but it even remembers things it doesn’t need to know.