Bach composed the Six Cello Suites (c. 1717–1723) during his tenure as Kapellmeister to Prince Leopold in Köthen. The Prince was an accomplished cellist—or at least employed one, Christian Ferdinand Abel—and the suites served clear pedagogical purposes: systematically developing cello technique and musical expression through dance movements in various keys.
While no explicit record states why this suite specifically, its role as the foundational cello work is undisputed—centuries later, it's still the first suite most cellists learn.