Because the inputs of the component (x, y) differ from what you wrote in the script (Curve, Direction, Distance). Unless you calculate some of the values in the script, the component needs those three inputs.
You need to provide a curve for the offset and plug that into the “Curve” input.