Evolution is an indispensable component of any satisfying explanation of our psychology.
Genetically influenced behavior is not necessarily good and not necessarily unchangeable. Explanations of bad behavior that appeal to genes do not absolve a person any more than do explanations that appeal to upbringing.
Thinking is a physical process, the human brain is not exempt from evolution
Of course the theory of evolution would be vacuous if it offered a glib explanation for every inexplicable act.
Natural selection is not the only process that changes organisms over time. But is the only process that seemingly designs organisms over time.