If you hold the cassette body still and turn the freehub retaining bolt anticlockwise, you're putting an anticlockwise torque on the hub shell. That's the same as putting a clockwise torque on the cassette, the same as pedalling forwards. The freehub pawls stop the shell rotating.
Now, if you...