A tab is a small flap or strip on an object. In the case of books, they're used for easy identification or reference (eg. in a filing system). So I suppose to keep a figurative "tab" on someone is about gaining information on them for later reference.