You're right, so we should make rules about what is irrational. But what if the people making the rules are irrational? Or corrupt? Then we should rely on the rationality of the person to make the right call in the moment, weighing rules against rationality. But what if.. Ad infinitum.
It's one of those things, we need to rely on both, and not entirely on one or the other.