This can occur due to muscular strain sometimes.
It doesn't seem to be serious condition.
Next Steps
If it is hurting, you should start with hot fomentation, use soft soled footwear, start ankle stretching exercises.
Take analgesic /muscle relaxant medicine if it is causing a lot of discomfort.
Health Tips
Avoid walking barefoot.