Likely they cut it out and tied it off to use as a temporary storage container. If you clean the bung out, you can eat them as well. That happens in modern industrial meat processing. They didn't use all parts of the animal all the time though, so it may have been thrown away at least part of the time.