How does the Animation Sample Project's animations get the root bone moving in the z axis?

Exactly how does the attach-bone work for the animation? I couldn’t quite figure out why it needs to exist even though it obviously looks like it’s doing something. I’m very new to skeletons and animations and still trying to learn the basics.