Looks like a gas cap wrench for a gasoline tank. What the gas tank was attached to I don't know; but, it gave relatively open access and wasn't recessed like a car gas tank cap. Something similar is made for cars that reaches to greater depth:
Example of car gas tank cap wrench.