Why is the term planetary nebula used even though the object contains no planets?

Answer

Early observers thought they resembled gas giants

The term planetary nebula is a historical misnomer originating from the 18th century. When early astronomers viewed these objects through lower-resolution telescopes, the round, fuzzy appearance of the nebulae bore a visual resemblance to gas giant planets within our own solar system, leading to the lasting, yet scientifically inaccurate, name.

Why is the term planetary nebula used even though the object contains no planets?
astronomyDistancenebula