Why do you get wax in your ears?

to protect the sensitive inner ear. just like ear hair, noise hair and (ugh) snot