That was the result of Zionist war against Arab States. Did you think after they found out about Nabka, they were going to be friendly to Arab Jews?
In any case, you should do further research - a lot of these Arab Jews were encouraged to leave - overseas Zionists were paying them to leave and when they arrived in Israel, they were given free housing (taken from Christian and Muslim Arabs).
You are blinded by your Zionist Narrative. They lied to you.