Keratitis usually happens because something has irritated the eye, for example, an infection or injury. Certain risk factors make it more likely for keratitis to develop. Wearing contact lenses is a risk, especially if a person wears them overnight. Failing to keep contact lenses or a contact lens case clean increases the chance of getting keratitis.