Direct Answer
If the men functioned as “messengers,” then Jericho wasn’t only being reconnoitered for attack; it was also being confronted with a final opportunity for mercy—finding anyone willing to surrender, seek refuge, or align with Israel’s God before judgment.