As for why Jews would settle in Europe, it was largely a question of Where else?
North Africa, Turkish Empire and Central Asia. Areas that always had Jewish populations.
Kazimierz the Great, that's why.