It's a humorous and darkly funny twist on an old classic. The punchline relies on breaking the expected anthropomorphic nature of the joke, replacing it with a more realistic (and unsanitary) animal reaction. It takes the whimsical setup of a horse in a bar and grounds it in a messy, absurd reality. It's the kind of anti-humor that many people find funny precisely because it's unexpected and a bit crude.