A tentative explanation of the colour gradients in the cores of globular clusters