Foot cramps are caused by sustained, painful, involuntary contractions of the muscles in your feet. Common causes of foot cramps are physical activity, prolonged standing, dehydration, medication side effects, and health conditions. Wearing shoes that do not fit can also cause foot cramps.
Source: healthline