Exactly. We invented rule-based machines so that we could have a thing that follows rules, and adheres strictly to them, all day long.
Im not sure why people keep comparing machine-behaviour to human's. Its like Economic models that assume perfect rationality... yeah that's not reality mate.