Age and pregnancy can make them more likely. Muscle fatigue might be a cause, but underlying nerve, kidney, and liver issues could also be at work. If painful sensations at night are accompanied by involuntary movements, this could be restless leg syndrome.