By forcing you to resist distraction and return your attention repeatedly to a well-defined problem, it helps strengthen your distraction-resisting muscles, and by forcing you to push your focus deeper and deeper on a single problem, it sharpens your concentration.