Player movement in Stealth - Root Motion


I feel dumb but what exactly cause the player to move in the Stealth??
I see the code, but there are no “translations” or anything. Is it Rotating that actually cause movement as well? I dont think so. Is movement preserved in animation?

void MovementManagement (float horizontal, float vertical, bool sneaking)
        // Set the sneaking parameter to the sneak input.
        anim.SetBool(hash.sneakingBool, sneaking);
        // If there is some axis input...
        if(horizontal != 0f || vertical != 0f)
            // ... set the players rotation and set the speed parameter to 5.5f.
            Rotating(horizontal, vertical);
            anim.SetFloat(hash.speedFloat, 5.5f, speedDampTime, Time.deltaTime);
            // Otherwise set the speed parameter to 0.
            anim.SetFloat(hash.speedFloat, 0);

void Rotating (float horizontal, float vertical)
    // Create a new vector of the horizontal and vertical inputs.
    Vector3 targetDirection = new Vector3(horizontal, 0f, vertical);
    // Create a rotation based on this new vector assuming that up is the global y axis.
    Quaternion targetRotation = Quaternion.LookRotation(targetDirection, Vector3.up);
    // Create a rotation that is an increment closer to the target rotation from the player's rotation.
    Quaternion newRotation = Quaternion.Lerp(rigidbody.rotation, targetRotation, turnSmoothing * Time.deltaTime);
    // Change the players rotation to this new rotation.

Root Motion animation will cause movement.

Legacy (old) animation would look like walking but would do it on the spot.