That was a joke. Let me tell you the reason why it is funny...
Q: What kind of bug is a wig?
Q: What kind of bug is a wig? A: An earwig!
My daughter invented this joke just yesterday. I thought that I would record it as well as analyse it here. This is both a joke and a riddle. The joke is probably also an example of a pun - based on the fact that the name earwig ends in wig.