The word was first published in 1707, when it was used to describe the "inborn migratory urge" in captive migrants.
Zugunruhed from German; it is a German compound word consisting of Zug, "move, migration," and unruhe (anxiety, restlessness).