“According to the theory, evolution endows a species only with what it needs to survive, and anything else is by random change. “
According to the theory, evolution endows nothing. Random change produces individuals that are then more fit or less fit to survive. The more fit tend to survive and produce more offspring.
I meant to say random chance, actually. But endowed in the sense that random mutations which promote survival allow for greater proliferation. In that sense, there is nothing to explain how humans have advanced abilities which have nothing to do with mere survival.