It is a (bad) joke. A bar is a place to buy drinks. It is also a thin, cylindrical piece of metal. Many jokes in English start, "A man walks into a bar, and . . ." So, this joke is playing off the fact that the reader assumes it is talking about the drinking bar, but it is talking instead about the metal bar.