We are very curious creatures.
It can be caused by not liking your job and looking for a way out.
It can be a dopamine addiction.
Most distractions are very easy to process so when you are doing hard work it might be tempting to look for something more easy on the brain.
'Social' is designed to distract us. So unless you turn off all knobs it is hard to ignore.
I believe treatment is done step by step. For most people cold turkey is very hard to do. But the first step is to see for yourself if distractions cause a problem (why change if it is not a problem?).