Welcome to Healthcare Magic
The cramp could be attributed to your exercise. Starting exercise suddenly can cause damage and cramping of your muscles. You should start with warmup before doing the regular exercise. Drink plenty of water and natural fruits juice atleast an hour before the exercise to prevent electrolyte imbalance
which can also cause cramps. You can avoid or reduce your exercise till the pain goes. Apply pain killing gel on the painful site of leg for relief. Eat plenty of fresh fruits and vegetables. Drink plenty of water.