It's a slang shortening of nipperkin (which comes from the 1670s) meaning "quantity of beer or liquor of a half-pint or less." Keep in mind that everywhere else, "airplane bottles" and "mini ...