Dogs get eye boogers because they don't have fingers.
But seriously, the accumulations of mucus and fat known as eye boogers are nothing more than dried-up tears.
In addition, tears contain mucus and fat.
Together, these components keep the eye moist and lubricated.