A desperate survival tactic often yields unexpected reactions. When David feigns madness to escape danger, the local king's response is one of sheer frustration rather than suspicion. King Achish of Gath reacts to David's erratic behavior with clear anger and disbelief, questioning why his servants would bring a mentally unstable man into his royal court. He asks rhetorically if he is somehow suffering from a shortage of madmen [רלב״ג, רד״ק]. This specific complaint stems from a difficult personal situation within the king's own home. According to tradition, the wife and daughter of Achish were themselves mentally unstable, constantly shouting and causing chaos inside the palace. Therefore, when David begins acting out just outside the palace doors, Achish bitterly protests that he has no need for yet another person to add to the turmoil already plaguing his household [רד״ק, מצודת דוד, מלבי״ם].
The king further expresses deep astonishment at the very idea of this man entering his home [רש״י]. There are two primary ways to understand his shock. While it was somewhat common for royalty to bring mentally unstable individuals into their courts for amusement and laughter, David's condition appeared so severe and extreme that he was completely unfit to serve even as a court jester [מצודת דוד, מלבי״ם, רלב״ג]. Alternatively, the king's disbelief is directed at the palace security. He dismisses the possibility that David wandered in on his own, knowing that the royal guards would never allow someone in such a state to cross the threshold without explicit orders [מלבי״ם].
Ultimately, this clever deception achieved exactly what David intended. Disgusted and thoroughly convinced by the performance, the Philistines left him alone. By masking his true identity behind the guise of madness, David successfully avoided harm and managed to escape safely from the king's grasp [רלב״ג, ביאור שטיינזלץ].