Hungry ghost is a Western translation of Chinese 餓鬼 èguǐ, a concept in Chinese Buddhism and Chinese traditional religion representing beings who are driven by intense emotional needs in an animalistic way.
The Chinese concept is related to the preta in Buddhism more generally. These beings are "ghosts" only in the sense of not being fully alive; not fully capable of living and appreciating what the moment has to offer.
The English term has often been used metaphorically to describe the insatiable craving of an addict.
"