Common causes are:
Ankle sprain or other injuries that result in swelling close to the tarsal tunnel and compress the nerve
Suffering from flat feet, causing the heel to lean outwards and therefore stretch the nerve on the ankle’s inner
A ganglion or similar swelling that exerts pressure upon the nerve
Diabetes or other condition like midfoot or hindfoot arthritis that may be responsible for swelling near the tunnel