Robots seem smarter than ever, and they're starting to help us do more and more. But where does that intelligence actually come from?