A cordless impact wrench uses batteries to generate power. The motor builds up energy using the rotation and then pushes it into an anvil that's located at the end of the tool. This creates an enormous amount of torque, more than can be produced by any human.