It was a sebaceous cyst, which had become infected when she popped it. She had to take antibiotics for four weeks. "I freaked out because I knew the only way to get it out was to surgically remove it.
There is usually no obvious reason for the ducts to become blocked, but some people do seem more prone to forming sebaceous cysts than others. It is also a condition that can run in families.