The shear force contributed by the nails is needed to satisfy equilibrium in the longitudinal direction.