You become sensitive to energy like the animals to such events. We can learn to in tune ourselves to vibrational energy in our environment. I have felt an energy coming up from the ground / basalt road -- the energy pattern was in a line form and I knew that meant that somewhere in the USA there would be an earthquake. I live in Washington State. That day Alaska was hit with an earthquake.
So like the animals people can also learn to read energy in the environment. And if you don't know how to do it: there is plenty of books to teach you how. [Reading Energy] Or you can pay attention to the animals and learn their common responses to such events. [Animal Responses to Earthquakes].
Best of Luck always,