Many years ago as a teen I worked seasonally at a big blue/yellow electronics store that sells TVs, computers, appliances....and candy at the register. Curious, I asked my manager about it.
"Oh yeah, someone comes in here to buy a $10 HDMI cable, and impulse buys a $2 candy bar at checkout. Instant 20% more sales. Gas stations, pharmacies, they all do it."