The protruding cylindrical staple/loop slides through the hitch latch/handle hole, and the hasp arm (or padlock) secures it to prevent unauthorized unhitching or theft. A classic older design seen on many caravans, trailers, horseboxes, or boat trailers.
eBay