The most common reasong for both ankles to swell in adults is the lower leg veins are not getting blood back to the heart
This causes fluid, to ooze out of the veins into the surrounding soft tissues. Supportive hose can be helpful. If the swelling is inside both ankle joints, and not the surrounding soft tissues, the causes are quite different. Your primary care physician can help.