Because addition doesn't take precedence over subtraction. Both have the same precedence, and are associated left to right., so 5 - 1 + 4
is equivalent to (5 - 1) + 4
.
(The order of evaluation is unspecified, which matters only if the operands have side effects.)