Perhaps he thought of Rahab who hid the spies, and received a commendation for it.
He probably has a large body of spies and scouts working under him.
I must be active in order to cope with the enemy's own scouts and spies.
But if they come in here do we want to stay and be arrested for English spies?
He then looked out for a post card from the spies, appointing a rendezvous.