Pakistan and India did bomb residential areas during counter-insurgency operations within their borders (in Kashmir, KP, Nagaland etc) and also during India-Pakistan wars. It's just that Indo-Pak wars lasted few weeks/months, not years.