Boredom and poor impulse control can be a play with this issue, and are both symptoms of ADHD. On the other hand, it could be a compulsion, which is a different disorder (but can co-exist with ADHD). It’s all very complex and teasing different things apart can be difficult.
Your best bet is to seek some counseling or therapy and see if they can help you break free from this loop. CBT therapy in particular may be really helpful.
ADDitude Community Moderator, Parenting ADHD Trainer & Author, Mom to teen w/ ADHD, LDs, and autism