99% of evolution was spent on single cell organisms. Intelligence only took 0.1% of evolution's training compute.
Evolution randomly generates changes and if they offer a breeding advantage they’ll become accepted. Machine learning directs the change towards a goal.
Machine learning is directed change, evolution is accepted change.
Either way, it rolls down the gradient. Evolution just measures the gradient implicitly, through parallel rejection sampling.