Hello!
Did you have any fall or twisted your ankle? If you also had an intense cardio or a long trek might also cause this.
You need to rest and take some anti inflammatory drugs and keep your feet elevated on a pillow while sleeping. Also apply ice to decrease the swelling.
If this does not help you need to visit an Orthopedician for examination and future course of action.
Take care!