You should re-install them (or make sure they’re fully updated), and also make sure they’re not from the AUR.
It’s possible you pulled one of them (or both) from the AUR because of another dependent package (besides GIMP), and thus you don’t consciously relate gegl or babl with GIMP itself.
$ sudo pacman -Suy gegl babl
[sudo] password for user:
:: Synchronizing package databases...
core 166.3 KiB 449 KiB/s 00:00 [#############################################################] 100%
extra is up to date
community is up to date
multilib is up to date
warning: gegl-0.4.38-1 is up to date -- reinstalling
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
:: babl and babl-git are in conflict. Remove babl-git? [y/N] y
Packages (4) babl-git-0.1.89.r1705.2c9843f-1 [removal] grub-2.06.r297.g0c6c1aff2-1 babl-0.1.92-1 gegl-0.4.38-1
Total Download Size: 18.37 MiB
Total Installed Size: 63.92 MiB
Net Upgrade Size: 0.87 MiB
:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
grub-2.06.r297.g0c6c1aff2-1-x86_64 14.8 MiB 3.65 MiB/s 00:04 [#############################################################] 100%
gegl-0.4.38-1-x86_64 3.1 MiB 4.30 MiB/s 00:01 [#############################################################] 100%
babl-0.1.92-1-x86_64 464.0 KiB 3.02 MiB/s 00:00 [#############################################################] 100%
Total (3/3) 18.4 MiB 3.61 MiB/s 00:05 [#############################################################] 100%
(3/3) checking keys in keyring [#############################################################] 100%
(3/3) checking package integrity [#############################################################] 100%
(3/3) loading package files [#############################################################] 100%
(3/3) checking for file conflicts [#############################################################] 100%
(4/4) checking available disk space [#############################################################] 100%
:: Processing package changes...
(1/1) removing babl-git [#############################################################] 100%
(1/3) installing babl [#############################################################] 100%
(2/3) reinstalling gegl [#############################################################] 100%
(3/3) upgrading grub [#############################################################] 100%
:: Grub does no longer support side-loading modules when secure boot is
enabled. Thus booting will fail, unless you have an efi executable
'grubx64.efi' with bundled modules.
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating the info directory file...