When something terrible happens, ego demands that someone be punished. In simpler times, they used a proxy. Two kids were pulled from the goatherd. One had its throat slit, the other was driven into the desert, taking with it all the sins of the community.
Ah, those were the days!