In the US, the genuine Apple power adapter has only a very small two-prong adapter built into it. It has become known as a "duckhead". It is not grounded. It is removable.
The additional accessory you can buy is 1.8 meter "Apple Power Adapter Extension Cable" US$20:
https://www.apple.com/shop/product/MK122LL/A/power-adapter-extension-cable?fnode=8b
As you can see, it has a molded three prong plug, which will provide a proper ground PROVIDED the outlet is properly Grounded.
So the question we all are wondering, "Where did you get that?"