If Hamas believes Egypt wants to topple their regime, they would never dare initiate war against the Egyptian army, but firing rockets at Israel is cheap and easy.
The activists do not care about the Palestinians' suffering as much as they are interested in advancing their anti-Israel agenda. They rarely have anything good to offer the Palestinians.