The difference is if a pass fails, you gain nothing, whereas even a mediocre run will probably give you at least a couple yards. So, if your goal is to avoid 3rd and 10, a run is more likely to accomplish this than a pass, even though a successful pass has a much higher ceiling in terms of yards gained.