GASTLY is largely composed of gaseous matter. When exposed to a strong wind, the gaseous body quickly dwindles away. Groups of this POKéMON cluster under the eaves of houses to escape the ravages of wind.
It’s said that gas emanating from a graveyard was possessed by the grievances of the deceased and thus became a Pokémon.