The whole point of a transaction is to allow you to send multiple interrelated commands to the database and roll them all back if just one fails.
For example, imagine you were a bank. To move money from one account (table) to another, you need two sql commands. One to remove the amount from table A and another to add the amount to table B. If either of those commands were to fail, youd be in big trouble. Without a transaction an error after the first one is easy to fix, but if the second fails, you would have fix whatever went wrong in table B and then go back and reinsert money into table A. Using a transaction, you just issue a Rollback and everything back to the Start Transaction is undone automatically.