It's in the Bible.
shall put both his hands
on the goat's head
and confess over it all the evils,
sins, and rebellions of the people of Israel,
and so transfer them to the goat's head.
Then the goat is to be driven off
into the desert
by a man appointed to do it.
The goat will carry all their sins away with him
into some uninhabited land.