The evolution of animal behavior does constitute a learning process, but it is learning by the species, not by the individual, and the fruits of this learning process are encoded in DNA.
Ray Kurzweil, How to Create a Mind: The Secret of Human Thought Revealed
evolution