An earlier posting:
In the RN, the Chief Bosun's Mate is known by the naval slang term "The Buffer".
Partridge's Dictionary of Historical Slang has, among several other meanings:
6. A boatswain's mate: naval : mid-C.19-20.
That seems the likely explanation here.
Regards