I usually do it when I can’t figure something out or I’m flip flopping on a solution (software engineer).
I originally started doing it to try to take my mind off the problem to not overthink it. But then I’d find that I’d slept for an hour or so. Thus the timer.
I wonder, though, since you particularly mentioned "desk naps": Does focussing on your work exhaust you to the point of sleepiness?