Before May 2024, Egypt was the primary route for aid to get it, but getting from Southern Gaza to northern Gaza was incredibly dangerous.
> But recent intelligence has shown the extent to which Hamas has been able to build many of its rockets and anti-tank weaponry out of the thousands of munitions that failed to detonate when Israel lobbed them into Gaza, according to weapons experts and Israeli and Western intelligence officials. Hamas is also arming its fighters with weapons stolen from Israeli military bases.
> “Unexploded ordnance is a main source of explosives for Hamas,” said Michael Cardash, the former deputy head of the Israeli National Police Bomb Disposal Division and an Israeli police consultant. “They are cutting open bombs from Israel, artillery bombs from Israel, and a lot of them are being used, of course, and repurposed for their explosives and rockets.”
https://www.nytimes.com/2024/01/28/world/middleeast/israel-h...
And quite a bit of what's being talked about wrt to re-manufacturing Israeli unexploded ordance was stockpiled prior to Oct 7th. Israel did not start bombing Gaza only after Oct 7th (and in fact had been bombing Gaza as late as Sept 23, 2023).
Gaza is on the ocean: they could have been brought in via boat.
Otherwise the answer is largely tunnels.
https://www.reuters.com/world/egypt-refuses-coordinate-with-...
https://www.timesofisrael.com/egypt-refusing-to-coordinate-w...
https://www.fdd.org/analysis/2024/05/23/egyptian-blockade-of...
"On May 7, Israeli forces seized the main border crossing at Rafah, closing a vital route for aid into the besieged enclave."
Understandably, the Egyptian government does not want to coordinate with the Israeli government after seeing how the Israeli-organized aid sites have been going.
That being said Egypt being complicit doesn't make any of this better.
Harboring them was seen by some people as an indirect support to Israeli efforts to push Palestinians out and take over their land.
To this day, any talk about allowing Palestinians to move en masse out of their territory, even as refugees, is at best a very controversial move.
Spitballing here, but it might be continued unease about Arafat. He weaponised the Palestinian population in Lebanon [1] and Jordan [2] in ways that would make it politically untenable for them to accept Palestinian refugees.
[1] https://en.wikipedia.org/wiki/Palestinian_insurgency_in_Sout...