Still shooting

If Hamas is still attacking Israel with rockets why would anyone want to declare a cease-fire with them?