just like any other part of your body, you get zits and pimples when your skin is dirty, oily, etc. If you havnt cleaned your ears (well of thouroughly) in a while, that's why a pimple has formed in...
though it may be painful, i would suggest popping it with tweezers or something of that matter. it will get irritated, so put cream or something on it to heal overnight.