It obviously wasn’t so strict since the Palestinians were still able to send thousands of rockets.
Gaza also has a border with Egypt, which Israel doesn’t control. For their own reasons, the Egyptians also blockade Gaza - although they did let in all the explosives and weapons that were used against Israel.
I agree that the Egyptians also blockaded it, which is also explained in the wiki I shared. It is still inaccurate (and intentionally misleading imo) to say "Israel left the place some 20 years ago".
The point I'm making is that it is inaccurate to say Israel "left the place some 20 years ago" because they maintained a strict blockade on it. I didn't say anything about cause and effect.
https://en.m.wikipedia.org/wiki/Blockade_of_the_Gaza_Strip