The biology of belief, optimism, and good health

The biology of belief, optimism, and good health
It can be argued that optimism represents a biased view of reality. Why would evolution favour a trait that presents you with a bias instead of a perfectly objective view?