They are not bombing people, they are warning them (and also calling and texting them) to get out so that thee are no/limited civilian casualties and only the infra is destroyed which is housing rockets etc
Sure, how about I drop a 30 second "door knock" before I blow your life to smithereens because I feel like your 10 story building might be hiding a few kalashnikovs? Feel free to evacuate to the few hundred meters of free space in the world's largest open air prison. The simple fact is: this is colonialist ethnic cleansing and the only reason it goes unchecked is because of historic Western guilt uncritically favouring the Israeli state for geopolitical reasons.