The eye is an organ that has immune priviledge, this means that our regular immune system does not interact with the eye in the same way as other organs. Furthermore, the eyes have their own form of immune system called the Oculuar Immune system.
This system is in charge of managing the healing processes in the case of injury or infection.
References: