"GNOME and KDE are desktop environments at the root"
Right, that was kind of implicit in "have long surpassed"
They did indeed start out as desktop environment projects but have over time evolved.
Nowadays the majority of contributors is working on applications, only a small subset of each of the two communities is working on workspace components.
The desktop/workspace has become just one of the several products created by them.