This confuses me. If a wind powered device such as a sailboat or a kiteboarder is following the wind, how do they get back to where they started? or do they?

(may be broke/outdated!)
This confuses me. If a wind powered device such as a sailboat or a kiteboarder is following the wind, how do they get back to where they started? or do they?