Question: What did the first vending machine dispense?
Answer: The first vending machine dates back to ancient Greece, and it dispensed holy water in exchange for a coin. The early mechanical device was invented by Hero of Alexandria as a way to stop people from taking more holy water than they were paying for. The link offers an explanation of how it worked.