Complex sentence: The question arises why Bach turned to other librettists, when there still texts by Ziegler unset.
Split into simpler sentences: The question arises why Bach turned to other librettists. There were still texts by Ziegler unset.