It is usually caused due to bacterial infections, viral infections, or allergic reactions, and in some cases, also due to smoke, harmful gases, and foreign objects like contact lenses. This condition may be contagious in some cases, wherein the infection is acquired by bacterial or viral infection.