He resisted the will of Sauron himself for a bit, and even when hurt by him he told him a little as possible. Pippin very intentionally told Sauron nothing of their quest or of Frodo and Sam.
He's a fool, but a fairly intelligent, strong-willed and kind fool.