They adopted this slogan in 2001 as a way to showcase their ability to turn everything they touch into gold, a reference to the mythical King Midas who turned everything he touched into gold.
However, it's important to note that "The Midas Touch" is also used by other companies, although less prominently than Goldman Sachs.