I shouldn't say we evolved to be perfectly rational of course. it's more that we evolved to approximate rationality in a manner more efficient than actually calculating everything. see "how outfielders catch fly balls" as an example of a rationality shortcut.