Here's a breakdown of its origin:
* Early uses: The earliest recorded use of the phrase dates back to the 16th century, where it was used literally to describe the act of hammering a nail.
* Metaphorical meaning: The phrase quickly transitioned from its literal meaning to a metaphorical one, representing the act of accurately understanding or achieving something.
* Evolution of meaning: Over time, the meaning broadened to encompass achieving something perfectly, expressing a precise thought or opinion, or hitting the mark.
The idiom's popularity likely stems from its direct and powerful imagery. The act of driving a nail straight and true is associated with precision, skill, and achieving a desired outcome, making it a fitting metaphor for success in various contexts.