As far as I understand, the residence is the actual place of residence of the person, which could be a shtetl, a village, etc. The town is the nearest town with the authorities' office where the death was registered. Think of an office of the Ministry of Internal Affairs. The books were managed in Nezhin for the entire vicinity.