Eye, apart from seeing , also forms judgement based on the act of seeing, it acquires knowledge of what is seen.
Whether it is a Right/wrong Knowledge , correct or incorrect is a different matter.
In this function of acquiring Knowledge eyes is a Gyanendriya( Organ of Knowledge)
Mantras being the sounds grasped from Ether by Seers, are sacred and our organs should e purified and protected.