The most memorable piece of swag I've ever received (not given out) was a small Hydro Flask thermos – I use it all the time.
Thinking about the use of sweets at conferences, I'd assume they are most effective at the end of a conversation.
Eating a sugary sweet might just trigger a small release of dopamine, creating a psychological association that paints the interaction – and by extension, the person involved – in a positive light.
No idea if there is any truth to this, but could be the reason some services leave sweets in a bowl at reception sometimes?