Sin is just making mistakes, either by accident, or with intent to profit. Of course we cannot avoid it entirely. But what use is there in not forgiving yourself, at minimum? Since this is an error, it is a sin. It is an error to not attend to the present moment, and dwelling on and repeatedly punishing yourself is also an error.