There is a severe lack of construction materials in Gaza. My guess is that Hamas has a choice between using what's left for tunnels, or losing the war.
Regardless, my original point stands that Hamas do not have the means and resources both to build public shelters for everyone and to continue its military efforts.