It makes sure people don't leak transactions as a result of not implementing the pattern correctly, i.e. forgetting to commit or rollback.