Lebostein: 1. The official version number of the developer
2. The version number of the installer setup file
3. The mysterious gog-xx version number
That is VERY confusing!
1 refers to the game's version, while 2 refers to the installer's version. Why keep a version for the installer different than the game's version? Because GOG can update a game's installer for various things (like add more languages or issue GOG-specific fixes) without changing the game's version itself.
3 is the same as 2. Specifically, the xx part of gog-xx refers to the last two digits of the installer's number as a quick way to check whether you have the latest installer. For instance, 7th Guest has version number gog-17 and the installer's version number is 2.0.0.17.
Could it be done better? Sure it could, but that could be said for quite a few things here on GOG.