Why do you have ear wax?

you have earwax because natural oils from your ear do not just slide out of your ear they form together and protect the ear drum from getting hurt but it is okay to get it taken out.