Watch logging incline on a flat course

I did a half marathon today on a flat course, my Garmin vivoactive 4s logged 168m climb but my friends watch said 0m..... What's going on?