Just in case your candy bar gets stuck?
Most vending machines already have this – and they have for 30–40 years, for exactly the reason you’re mentioning.