Sockets intended for hand tools are made with hardened metals. They are too brittle and pose considerable risk of shattering if used on an impact wrench. Sockets intended for impact wrenches are made with a softer metal that instead of shattering will deform and then spring back to its original shape (this property is "elasticity").
They are hard to find. I found these, but not any others:
-D