A person does not merit to acquire Torah and good deeds in every place;
for this reason Hashem brings about circumstances that lead this person to leave one place for another.
Sefer HaMidos, Torah Study, Part II §12