Yes, you're right every node knows the Raft network address of every other node. But Raft network addresses are not the network address used by clients to query the cluster. Instead every node also exposes a HTTP API for queries.
So code needs exist to share information -- in this case the HTTP API addresses -- between nodes that the Raft layer doesn't handle.