You keep switching between tasks because every task has a sticky spot, and the switch makes that discomfort vanish at once. That is procrastination, not a lack of focus. Hardly anything gets finished because you leave each task exactly where it got hard.
Read the full article: https://impruvement.com/blog/improving-focus-why-you-keep-switching-between-tasks