The military only demands those kinds of things when there are more applicants than slots.
You can fly fighter with glasses, but demanding 20/20 vision or better to be accepted into Pilot Training limits the candidates to a manageable pile.
That part I knew, because I wanted to join the air force and fly but was myopic since 2nd grade, and it got worse as the years went by. Of course, when I wanted to be a pilot, women were not allowed to fly in the air force.
Since having cataract surgery, I see very well at a distance but need glasses for reading and the computer.
So I’m still in glasses! LOL!