DRY is often confused as "don't repeat code," which was never the intended meaning.
DRY is about knowledge. Don't repeat knowledge.
You can repeat identical lines of code that don't repeat or leak knowledge.
You'll find the proper definition of the principle, formulated by Andy Hunt and Dave Thomas, in their book "The Pragmatic Programmer" as quoted here:
"Every piece of knowledge must have a single, unambiguous, authoritative representation within a system."