Why curly braces changes the sequence of output?

So putting a curly barces in marked code changes the sequence of output, node.value is placed before node.key as opposed to the typed code, what is the reason for this?