Mamya's right - the high value goods tend to have an RFID tag (RFID = Radio Frequency identification)
The tag is made up of two parts: the tag itself and the antenna.
The tag can store a small amount of data (up to around 1 kByte), such as the product name and product type; date of manufacture and so on.
The antenna is the square-spiral wire. This allows the transfer of data and of energy between a reader and the tag itself. It has a range of a metre or so
If the tag is not de-activated, then those gates by the entrance doors detect the tag and set off the alarms.
When you pay for the goods, the tag must be de-activated, usually by sending a specific signal through the antenna that instructs the tag to de-activate itself, so that it does not trigger the alarms by the entrance doors.
It's not done with the laser bar-code reader, but with a specific radio-frequency device. I suspect (but don't know) that the RFID de-activator is buried in the payment workstation, and the tag has to be located in a certain position when the price is scanned in. Then the RF de-activator kicks in and does its magic.
Hope it helps