Why Do Comets Have Tails?
As comets cross the invisible boundary known as the ice line, their ice starts turning into gas.
Worlds that exist close to the warmth of the sun, like the rocky worlds of Mars, Earth and our moon, have relatively little ice, because they lie inside what is known as the ice line.