The last time I had cramp, it was 2am and I was dealing with a very ill 18 month old whom I could only settle by having her sleep on my chest. She woke up, vomited all over me and so I thought “Oh well, best just carry her to the bathroom and get cleaned up”. Then the leg cramp set in. Cue me yelping and hopping around in the dark, covered in sick, trying not to drop my daughter.
On a more serious note, I’ve tended to suffer from cramp during sustained periods of exercise, moreso when I haven’t stretched properly in between sessions. (De)Hydration is also possibly a factor as I find cramp is more likely in warmer conditions.