That would be ridiculous right you could be thinking, programming and improving the product to get a better bonus in the end rather than sell soda off of craigslist or ebay.
But you see that is how they think about it. You are stealing it and could be doing <insert the worst possible thing>. That is what management might come to conclusion about.
Another perspective + a story. (Warning: getting a bit prejudiced here). I have heard of foreign H-1B workers (won't name a country will stop at a vague level of prejudice) stuff their backpacks with soda. Stay late, look around, see if anyone is looking start shoving soda cans to fill the backpack up as much as they can carry.
It wasn't that management was upset, you see, it was other co-workers that were disturbed by that. Why? Because they realize they are working with "that" person. That would be disturbing to me. Is the company not paying them enough. Are they a kleptomaniac. Did they grow up poor and learned to steal food. What else are they stealing? Are they sabotaging our product? Do I want them around? Questions like that.
They complain. How does management react. Well they could lay off so and so. But heck he is chugging along programming and we got him on H-1B sponsorship. Laying him off because of a soda issue is worse than just making everyone pay for soda and, in return we get to save couple of thousand dollars a year.
That is how I heard about* (from another party, so this might have been made up, I don't know, take it for what it is worth).