This is actually a bit misleading, because in the legal or policy sense Egypt has generally not granted them formal refugee status or adopted a policy of permanent resettlement.
Egypt has consistently rejected the idea of permanently resettling Gazans in Sinai or granting them refugee status, arguing that mass displacement could become permanent and undermine Palestinian claims to return to Gaza. Many of those who entered Egypt did so as medical evacuees, foreign passport holders, relatives of foreign nationals, or by paying to leave through the Rafah crossing. Many remain in Egypt on temporary or uncertain legal status rather than as recognized refugees.
Also, not being funny but the Egyptian/ Gazan Palestian distinction is sort of nebulous given that many Gazans are fundamentally Egyptian anyway: When the British invaded Egypt in 1882, scores of Egyptians fled to Palestine. A news report from the time stated: “Many of the people come here from Egypt to wait until the danger passes.” But very few actually returned to Egypt. To this day, the third most common Palestinian surname is El Masry, literally translating to “the Egyptian.”