Answer here:
http://chalkdustmagazine.com/blog/self-service-machines-give-awful-change/
In short, the change comes from separate tubes that are filled by the supermarket. The design of these change-giving tubes are based on the ones for the American market where there are fewer coin types, so...