It's usually a sign that you've stayed awake longer than you should have. DD gets it and says this to me often. She finds it only happens when as she puts it her "body is really overtired". She tells me it's her bodies way of saying you are up past your bed time
I agree Rouge. This happened to me in pg too and was a sign I needed to go to bed. It still happened even though I took magnesium.