DRY is much more than just not copying code verbatim. It's also about not defining the same logic or concepts in multiple places. This duplication can be a real problem since it introduces a very strong, hidden coupling between the duplication sites (they need to be kept in sync).
In other cases, accepting some copying can be fine rather than introducing awkward explicit dependencies.