Why Do Some People Have Allergies to Penicillin?

What causes certain individuals to be allergic to penicillin medication?