It can be a sign of a few things, like anxiety too, but it can also just be a sign that someone’s bored.
Like with most things, it doesn’t mean a lot on its own, but if it’s being done in excess, or uncontrollably, then it could be a sign of something else.