I get calf cramps if I have been doing a lot of running or cycling pre-swim. I think they are a combination of fatigue + tight calves. I don't know what to tell you other than keep stretching. Do you have a foam roller? Those can be helpful for loosening muscles.