They resemble the monster from the movie Alien. That is where that comes from. It is just the pupa (cocoon) stage that they go into before emerging as beetles.