In PostgreSQL every statement runs inside a transaction; without BEGIN each statement gets its own (autocommit). COMMIT makes the changes permanent and ROLLBACK discards them.
Transaction
A group of statements that the database treats as one unit: all of them take effect, or none do.