Here's why:
* Icy rock: Comets are primarily made of ice (water, carbon dioxide, methane, etc.) and dust.
* Bright tail: As a comet gets closer to the Sun, the ice heats up and vaporizes, creating a bright tail of gas and dust.