There is such a thing as hunting snipe. They have a very erratic flight, and were a challenge to expert wing shots. But there was also a disagreeable practical joke involving tricking gullible persons into holding a bag open allegedly to catch the snipe, and then leaving them, pretending that the snipe would be driven towards them.
From this comes the phrase to "leave someone holding the bag".