Don't know if you're using transactions, but a rollback of a transaction will not have the effect of rolling back the autonumbering.

For example, if the user started to enter a new row (either on purpose or accidentally) but then immediately hit undo or delete (etc...), the autonumber would have been incremented but not rolled back.