These two labels mean different things. A Game of the Year (GOTY) edition is essentially an award badge—the base game is usually unchanged, simply re-released to celebrate its recognition.
An Ultimate Edition, on the other hand, typically bundles the base game together with extra content like add-ons or downloadable expansions. In short: GOTY is about prestige, while Ultimate Edition is about packing in more content.