Moving 40 from checking to savings takes two writes: take 40 out of one account, put 40 into the other. If the server dies between them, 40 has vanished.
A transaction wraps both writes so they count as one. After COMMIT both are saved. If anything fails before that, neither is.