The nail resists through friction, not glue
A driven nail holds two pieces of wood together not by bonding to them but by the compressive friction of displaced fibres gripping its shaft along its length. This is why pulling a nail straight out is hard while the same force applied as leverage extracts it easily: the hold depends on sustained lateral pressure, not on any adhesive contact.