Many in Egypt do in fact dislike Palestinians:
'Many fear disclosing their Palestinian identity due to discrimination and the campaigns which have been whipped up by Egyptian media against them time and time again since the late 1970s.'
The assassination of then culture minister, Yusuf Al-Sibai in early 1978 at the hands of a militant Palestinian faction also played a decisive role in Egypt's new hostility towards its Palestinian refugees.
...Here Amal is referring to the military coup which saw General Abdel Fattah al-Sisi take power, ousting the late Mohamed Morsi. This ushered in a period which saw Palestinians heavily demonised by Egyptian media – a trend which has precedent in Egypt.
In the aftermath of the 2013 military coup, Egyptian media platforms accused Palestinians of agitating for the revolution, infiltrating Egypt's borders, and organising jailbreaks.'
The article doesn't explain, of course, but Hamas is related to the Muslim Brother hood, represented by Morsi. Egyptians who oppose the MB suspect Palestinians in Egypt of supporting it.
No recognition, no rights: Palestinians in Egypt (newarab.com)