The idea that animals can predict earthquakes has ancient origins. In 373BC, the Greek historian Thucydides recorded that rats, dogs, snakes and weasels deserted the city of Helice in droves a few days before a catastrophic earthquake.
It was the first in a long line of such anecdotes. There is also no shortage of theories about what might be going on.