What are the three terminal devices next to the outlets? If they're switches, why does the earth ground line go to them?
While @jfasoc did not post a photo of the exterior, it seems pretty clear those are probably small, round rocker-switches.
It seems traditional outside North America to provide a local switch at each receptacle.
It appears that in the "OFF" position, it connects the line/hot pin to neutral/low (blue).
It looks like the earth/ground (yellow/green) wire goes directly to the receptacles.
I am also surprised at the soldered earth/ground. That would probably NOT pass inspection by the authorities.
However the sorry appearance of the internal wiring is pretty common if you open those things.