Points dependent on sine curve and distance to point

I would like to know why my points move the way that they do. How does the points move in relation to the distance to the closest point and the sine curve? When I remap the distance in “closest point” and use bounds I can clearly see the points following the sine curve. what is it that makes the output look so different?

3. Attach minimal versions of all the relevant files