Likely a tool from a factory or the military. They were made with oddball drive sizes to keep people from stealing them since there were no sockets commercially available that would fit them.
Since its self contained, I would hazard to guess that it was part of a tool kit in a vehicle or was intended to stay with a particular machine to be used to make routine adjustments.