FWIW technically the programs have different purposes, even if they also have a lot of overlapping functionality: Krita is primarily a digital painting application, which you can also use to do some general image editing while GIMP is primarily an image editing application which you can also use to do some digital painting. However if you compare the focus of each application to the equivalent of the other you'll see that Krita's image editing functionality - especially on things outside digital painting - is lacking while GIMP is stronger there and at the same time GIMP's digital painting functionality much more limited when compared to Krita's.