Abishia: it's a complicated matter i did some digging on this "Abandonware " topic
that's why i removed the link (above)
it was owned by New World Computing (filed a backruptcy in 2003)
it's unclear if the licence are being bought by a other company but i guess it is (if GOG selling the game in store)
if they don't then gog is doing some shaddy works here.
New World Computing was bought by 3DO in 1996.
In 2002, 3DO developed financial issues and laid off a large portion of New World Computing's staff during the development of Might and Magic 9. This resulted in the game being released with a lot of issues and feeling half done, causing mixed reviews and poor sales. A single patch was released before 3DO filed for bankruptcy protections and sold the rights to the Might and Magic franchise to Ubisoft before dissolving.
This is also why the Army Men franchise, which was developed by 3DO, is now owned and released by 2K Games.
Other examples include the game studios Bulfrog (Populous), Origin (Ultima), and Westwood Studios (Lands of Lore, Kyrandia, Nox) that no longer exist but the games that they developed are in print because Electronic Arts owns the rights to them.
It doesn't matter that the studio that originally developed a specific game is around or not. If the rights got bought by another studio, they have the right to publish that game, make money off it, and enforce the copyright. There is absolutely nothing shady or illegal about this.
edit -- fixed a few typos :)