Before anyone jumps in to say the issue is grounding and that it's your fault for having bad wiring: ground wires are not installed by default in all countries.
If you live in one of these countries, in rented accomodation, there's not much you can do about this.
And yet, most electronics are fine. It seems like MacBooks are some of the worst though, giving you shocks and crackling audio.