That is not the same static discharge, although the reason behind it, electric potential difference, is the same. What you feel is leaking current though the Apple chargers are built to a standard that allows for an extremely low amount that is in no way dangerous.
It happens with any other device with an aluminum housing. It's just that Apple happens to sell a lot of these devices, whereas other manufacturers mainly sell devices with synthetic/plastic devices, such as carbon housings. I have the same thing on an iPad too, again due to the housing, and regardless of whether the charger is from Apple or my trust third party Anker one.
It happens due to how switching power supplies function (again, not just Apple) and in some cases it is actually caused by (older) electrical installations not being up to modern standards in which case there is nothing Apple can do about that, nothing to be done about it in the power supply design.
You might also have noticed that it doesn't always seem to happen, and that is because it can only be felt if you yourself are isolated from ground. You can test that by grounding yourself by touching something like a desktop computer case that is grounded via a three prong power connector or a radiator.
It's always been this way with really any devices made with aluminum housings using switching power supplies, for example it happened on unibody Macbooks over a decade ago.
It's in no way dangerous as Mac chargers are made to safety standards that limit them to exposing 25V DC at the most, and at such low voltages not enough current can flow for it to be harmful in any way as the electrical resistance of your body is too high at such low voltages to let any current flow. Voltage, resistance and current are linked in that way. It's also why safety warnings always say not to use devices near water or in the bathroom. Wet skin has reduced electical resistance, which allows for more current to flow at the same voltage.