There are a lot of different reasons for cramps, from vitamin and salts deficiencies, to drug interactions, drug side effects (statins and metformin being the most common), but those are all treatable and largely avoidable.
I don't think that Diabetes in itself causes cramps.
Personally, I eat low carb, and if I didn't supplement with magnesium and potassium and make sure I get enough salt on my food, I would get cramps regularly. But thankfully I haven't had one in ages - due to the supplements.