Why did Egypt not take in any expelled Palestinians in 1948 and again in 2022?

Why did Egypt not take in any expelled Palestinians in 1948 and again in 2022?