Three packages, all built on the same game. The original Age of Mythology came first, followed by The Titans expansion, which added the Atlanteans as a new civilisation. Gold Edition then bundled the base game and the expansion together.
So there is really one game with one expansion, sold in a few different combinations. An Extended Edition was later released on Steam with updated visuals and Steam Workshop support, but it contains the same content rather than adding a fourth entry.