Think of it the other way around - the only real weapon Hamas has against the much stronger Israel is shifting public opinion, so it's in their incentive to bring as much negative attention as possible to Israel in the conflict
That's a bit naïve. The other side is going full throttle, including through ivy league presidents, the New York Times, and the BBC. Of course they're going to try to fight back.