well, by 'Eye Boogers' I think you mean 'Sleep'.The glands in your eyelids and the protective tissue that covers your eyes will produce secretions(a kind of discharge) that help protect your eyes...
Nobody would ever imagine boogers are so complicated, but this is a basic explanation of how and why boogers are created. As you may know, our body produces mucus, also known as snot, which protects...
Special glands in the nose produce "boogers" to keep bacteria from entering our bodies. (You know your snot is doing its job when your boogers are green from the build-up of bacteria)