They can serve as a barrier. Sunglasses, especially, can prevent others from seeing one's eyes, making interactions seem impersonal. Glasses may sometimes reflect light, obscuring the eyes.