Muscle cramps usually occur during heavy muscular exercise, as muscles lack sufficient oxygen, which promotes an anaerobic buildup of lactic acid.