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.
https://www.apple.com/us/shop/product/MD837AM/A/apple-world-...
[1] https://en.wikipedia.org/wiki/AC_power_plugs_and_sockets:_Br...
[2] https://support.apple.com/three-prong-ac-wall-plug-adapter
My layman understanding is that it stems from an issue in voltage management, both on the power rail itself and on the software side.
Certain types of CPU load trigger heavy crackling and popping in the speakers. Having the iOS simulator open makes it particularly egregious in my case.
Add to this that the two prong power bricks mean the chassis grounds through your hands in (worse in low humidity), and in the right building it's a lot of worrying symptoms all at once.