The term "hairy star" comes from the appearance of comets, which are often described as having a bright, star-like nucleus surrounded by a hazy, elongated "tail" that appears to stream behind the comet. This "tail" is actually composed of dust and gas that is released from the comet's nucleus as it approaches the sun.
The name "hairy star" reflects the ancient perception of comets, which were often seen as ominous portents. The "hairy" appearance likely contributed to this perception, as it seemed to suggest that these objects were somehow "alive" or "moving" in a way that was different from other stars.