The thing about buttons, though, is there seems to be some invisible magic taking place between the moment you press them down and when you get the expected result. You can never really be sure you caused the soft drink to appear without opening up the vending machine to see how it works.
Maybe there’s a man inside who pulls out the can of soda and puts it in the chute. Maybe there’s a camera watching the machine, and someone in a distant control room tells the machine to dispense your pop.
You just don’t know, and that’s how conditioning works. As long as you get the result you were looking for after you press the button, it doesn’t matter. You will be more likely to press the button in the future (or less likely to stop).
The problem here is that some buttons in modern life don’t actually do anything at all. The magic between the button press and the result you want is all in your head. You never catch on – because you are not so smart.