We are a product of evolution, and the mechanism of evolution is natural selection. Evolution is selecting for survival, and the qualities we have are evolved to help us survive as well as possible. Our cognitive capability to reason has not evolved to find truth, it evolved to help us survive and that means that we sometimes find it easier to stay with a group rather than believe the correct thing.