What Is Ear Wax For?

Why do we even have oily, sticky stuff coming out of our ears? Is there a point to gross ear wax?

source