It could be something like too much coffee or tea. I get that crampy bladder thing on ocassion. Also dehydration in combination with diet factors I think
The cramps I get from HRT are pretty much the same night time leg cramps I get for various other reasons from being a desk jockey to diet. Certain foods like peanuts and my fruit smoothies too late in the evening will set them off. Of course dehydration.
After having spent some quality time inside of steel mills, I was surprised to see plastered all over the restrooms what the pro's consider dehydrated, basically anything, I mean anything, darker then a very pale yellow, as in very very pale.