What causes penicillin allergies in certain individuals?

What causes penicillin allergies in certain individuals?