It detects a voltage connected to the plug and starts feeding with slightly higher voltage, done.
These are really common in Germany, even being sold as sets at supermarkets occasionally.
As long as you have one of the old Ferraris style meters, it just runs backwards, these usually pay for themselves in about three years on a sunny balcony that way.