Why do my ankles swell up occasionally without any injuries?

See your physician. This could be due to high blood pressure, kidney disorders, heart problems, or poor valve function in your veins. I would recommend seeing your primary care physician first and getting a complete check up.