Hi ! If you are sure of your foot not being hit by something, you may be developing some kind of arthritis
in your foot. It is not possible to diagnose it without any clinical examination and biochemical test. For the time being you can take any anti inflammotory drugs which will reduce your pain and swelling for the time being. I would advise you to go see your family physician if it persists.
Wishing you an early recovery.