Yayin nesech, wine poured out for avodah zarah, is forbidden by Torah law in drinking and in benefit. Chazal added a gezeira on all wine of non-Jews, called stam yeinam, so that there not be closeness and intermarriage. The Gemara learns the prohibition of benefit from a sacrifice, a dead body, and an eglah arufah.