It's the other way around. The widget library was built for Gimp, then took a life of its own. Note that Gimp still has not released a version ported to GTK 3 (but the port is done since last year, in the 3.0 branch), released 13 years ago. GTK 4 has been released 4 years ago.