They still do this in many parts of the world, defecate into the enclosure where the pigs are kept. And then they eat the pig.
Of course, if pigs are hungry and penned so they can't roam, they will eat whatever they are given, but in the wild they don't generally seek out poop to eat, they eat a lot of grubs and fungus and whatever else is available. Good way to spread and get hepatitis. In fact, in areas where they feed the pigs their poop, hepatitis and tuberculosis are endemic.
Of course, if pigs are hungry and penned so they can't roam, they will eat whatever they are given, but in the wild they don't generally seek out poop to eat, they eat a lot of grubs and fungus and whatever else is available. Good way to spread and get hepatitis. In fact, in areas where they feed the pigs their poop, hepatitis and tuberculosis are endemic.

