You don't ban people from consuming sugar, you ban companies from mass-producing food with unhealthy amounts of it. It's about friction and incentives. If you want to buy a bag of sugar and bake a cake that's fine.
shades of grey and tradeoffs. gambling has a very clear and well studied negative effect on a small but sizeable percent of people and its not that great for everyone else. its my opinion were better off without it