This problem can happen without any definite reason and is more troublesome if you have flat feet. As far as treatment is concerned, you should do hot fomentation and local application of pain relieving gel / voveron gel. In addition, if you have flat feet you must use arch support.