Carrots are an indigestible fibre so they carry the coconut oil into your small and large intestine. Usually the coconut oil would be absorbed rapidly. The coconut oil then kills the bad bacteria lining your gut. The carrots on their own also absorb some of this bacteria and are excreted. You can do the same thing with bamboo shoots if you don't like carrots.
The evidence for this specific effect is pretty weak at the moment, but it's all good natural food anyway so you have nothing to loose. It worked for me so I'm passing it on.