Reminds be of the study showing doodling also benefits cognitive function (http://www.bakadesuyo.com/does-doodling-make-you-smarter).
It's not hard to imagine how physically occupying yourself in some way, whether it's doodling or chewing gum or diddling your thumbs or playing with a pen, frees up your mind to concentrate on a mental task.