probably u had a cramp in your sleep. I have them sometimes, and if dont notice them when they happen, they can hurt the muscle and feel the way u do.