A mutation occurs that makes an organism slightly more intelligent than its parents. It thus survives where its siblings do not. It has existed from day one. A nematode, a tiny worm with about 300 neurons, can learn basic behaviors. Even amoebas with no neurons at all can learn at a very basic level. All intelligence is just a matter of degree.