well, that's arguably part of it. You have to make your brain not be elsewhere for a bit, which can be pleasant.
I'm not good at meditating (I've not really tried to be) but I have noticed that tasks involving full focus get a similar result sometimes.