Inadequate stretching before exercising or over exerting the muscles during exercising may also lead to this painful condition. It may also occur as a side effect of the use of diuretics, and certain medications for the treatment of Alzheimer's disease, Parkinson's disease, hypertension, osteoporosis, and asthma.