I recall seeing trailer adapters built like that. The two wires would go to a trailer connector. Never had one though. I think it might have been something that u-haul dealers might have peddled back in the days of hitches that clamped on bumpers. I do have one of those hitches in my pile of stuff.
[on edit] I'd say that one of
these is what you have there.