Caffeine increases excretion of calcium and magnesium [1]. This is why some caffeine pills are pressed with ~75mg calcium.
Muscle tremors could be a sign of magnesium and/or calcium deficiency, so it's likely that you were losing too many minerals and not making up for it in your diet.