What is the meaning of When_you_hear_hoofbeats,_think_of_horses,_not_zebras?

When diagnosing a patient's symptoms, common ailments should be considered as more probable than rare ones.

Source: wiktionary.org