It's perfectly reasonable to not want unrestricted journalists leaking information about military assets, or possibly getting themselves killed. Most people seem to understand (or at least not care) when Ukraine imposes press restrictions. The question should be, why are people suddenly outraged when Israel does roughly the same thing?