They were often built beneath “UN Refugee Camps”. Also, knowing that tunnels are being built (not a surprise, after a while Hamas started bragging about them) does not mean you know where most of the access points are or that you can do anything about it.
Smoke them out.