What do you think may be a reason why Poland has accepted many Ukrainian refugees but won’t accept migrants from North Africa or the Middle East?

What do you think may be a reason why Poland has accepted many Ukrainian refugees but won’t accept migrants from North Africa or the Middle East?
Post Opinion