Any explanation for why I feel pain when my legs fall asleep?

Leg pain. Not unusual to get pain when legs recovering after going to sleep. Would be more concerning if it happens frequently.