It was originally developed as part of KDE (KHTML), although Apple have obviously done a lot with it since.
One thing that WebKit does better than other browsers on OSX is hooking into the native rendering APIs. That’s something that Firefox does a shoddy job at.