The book opens mid-crisis: Moab has revolted after Ahab's death (1:1), and Ahaziah, Ahab's son and successor in the north, "fell through the lattice (hasevakhah, הַשְּׂבָכָה — a wooden latticework screen, probably the railing or window-grille of his roof-chamber) in his upper chamber in Samaria, and lay sick" (1:2). A fall from a palace roof was not a minor slip in a world without trauma care: internal injuries, broken ribs, punctured organs killed slowly and untreatably, and everyone knew it. So the king does what an ancient king did — he sends messengers to inquire of a god about whether he will recover. But not Israel's God. He sends them south-west to Ekron, one of the five Philistine cities (with Gaza, Ashkelon, Ashdod, and Gath), a people Israel had fought since the judges, still holding their coastal territory, distinct in language-origin, religion, and pottery from Israel. Ekron was famous across the region for its shrine — later Assyrian records and Ekron's own excavated inscriptions confirm it was a major cult centre. A king of Israel consulting Ekron's god is the scandal the whole chapter is built on: the court prophet system, Elijah himself, is in Samaria's backyard, and the king bypasses his own nation's God for a Philistine oracle about a life-and-death question.
The first hearers heard a king on what might be his deathbed choosing a foreign shrine over the God of his own throne — that choice, not the fall, is what the chapter judges.
What Americans think: a clumsy accident starts a prophet story — king falls, king asks a pagan god, Elijah objects. What's actually there: the fall is background; the treason is the errand. Ahaziah treats recovery as a piece of information to be shopped for at whichever shrine answers, and shops outside Israel on purpose.