Products do not have purposes. Eyes can be for seeing, but can also be for eating or throwing at things. Atoms don't have tiny XML tags describing the purpose of an object they're part of. It's the user who attributes purpose to a tool.
You can't say "brain evolved to do X", you can at best say "brain is well suited to do X".