At first, the pig was walking at the edge of the land. Then my spiders attacked it and the pig somehow got onto the water. The pig attacked my spiders, which were standing on the edge of the land, and then ran away a few steps on the water and attacked again and so on. When it was finally killed, the meat it dropped disappeared in the water as usual.