This phrase actually comes from the tanning industry. The order of operation was to kill the animal with a bolt gun (screwing it) then to blue the hide (blued) and then to tattoo a quality mark on the hide (tattoo).