A nit is the egg of a louse. Nits will usually cement themselves to the hairs of the host animal and cannot be removed by conventional methods such as combs and chemicals.
It’s all about the little details.
Nitpicking, through it’s nature as a meticulous and detail oriented task has also come to be associated with other laborious tasks.