Maybe you're very creative, maybe it's escapism because you're discontent. For me it's ADD and when faced with a task that is uninteresting and requires mental energy I zone out. Forcing myself to focus is very taxing. Try the pomodoro method, 15min study 5min break or some such thing.