This happens because these parts (bumpers, mirror caps, spoilers, side mouldings etc), whilst body coloured, are not painted in the same factory as the body shells.
Rather, they are supplied to the main assembly factory painted and 'ready to fit' by other manufacturers on a just-in-time basis.
The fact that they are even closely matching is an achievement.