In Euripides' play
The Bacchae, the blind seer Tiresias says,
Young man, among human beings two things
stand out preeminent, of highest rank.
Goddess Demeter is one—she’s the earth
(though you can call her any name you wish),
and she feeds mortal people cereal grains.
The other one came later, born of Semele—
he brought with him liquor from the grape,
something to match the bread from Demeter.
He introduced it among mortal men.
When they can drink up what streams off the vine,
unhappy mortals are released from pain.
It grants them sleep, allows them to forget
their daily troubles. Apart from wine,
there is no cure for human hardship.
He, being a god, is poured out to the gods,
so human beings receive fine benefits
as gifts from him.
There are other examples of this kind in various ancient cultures as well. However, Roman Judea in Jesus' time was already heavily influenced by Greek culture, koine Greek being the administrative and military language, and as the lingua franca of the Eastern empire the language of regional trade. The NT was written in koine Greek.
So it appears to me that the Eucharist is an adaptation from Greek religious practice.