Back in the Europe of the Middle Ages there existed a curiously schizophrenic attitude to the question of whether the Earth was at the center of the universe. The doctrine of the established Catholic Church decreed that it was. The practical evidence suggested that it wasn't and the orthodox scientific theory endeavored to fit the evidence to the theory, at the expense of commonsense and logic.
Today there exists a similarly curious attitude to the question of whether or not economics is governed by people making rational decisions in consistent ways. The doctrine of the established economic theory says that it is. The practical evidence suggest that it isn't. And the orthodox economic theories endeavor to fit the evidence to the theory, at the expense of commonsense and logic.