From what I know of earwigs its a defensive display. Then again apparently they don't actually crawl in ears if given a choice so its weird how they get their name.