While it might seem strange, "mettle" originally referred to a type of metal, and by extension, the quality of metal. Over time, it shifted to refer to the strength of character or spirit, and then to the attention to detail and care that someone might put into a task, which is the core meaning of "meticulous".