Infected hairs

What causes these? I had one beside my belly button and two or three in my pelvic area. They were pink and puffed up.... I think they were infected at least. I pulled the hair out of them with tweezers. Hope that will help because it really hurt lol. I've never had them before and they appeared out of nowhere!!