The free snacks help with morale, and cost the company very little. Personally, I'd rather have more money so I can buy my own snacks, but I've never heard of a company offering employees an actual choice between free snacks or a raise, so in reality it really comes down to free snacks vs. no free snacks.