Duncan wasn’t Fremen, but Duke Leto had him embedded with the Fremen as an advance scout and emissary and their acceptance of him paved the way for the Atreides to be accepted by the Fremen, or at least tolerated by them at first. But yeah, the writer gets a lot of it wrong.