The movement of the ark from Ashdod to Gath and then to Ekron had made it abundantly clear to the Philistines that the ark (and thus, the Lord) was bringing disease upon them.1 Crying up to heaven did not mean that they were praying to the Lord but rather serves to emphasize the extent of their suffering.
12 The men who did not die were struck with tumors, and the cry of the city went up to heaven.