It can't. You are right.
The central processor must know true boat speed and true heading before it can make that correction. If there is a tide running, even boat water speed will not do it, it has to be groundspeed, so a GPS feedback is needed.
Happily, relative wind speed and direction are more important.