An idiom meaning that the person who said something fits the description as well as the person they were speaking about. Presumably dates from a day when pots and kettles were made of cast iron, which turns black pretty quickly with use.