The town guard wants to send the party as scouts to figure out where they're from, what their likely objective is, and whether or not they're hostile.
They simply arrive and set up camp outside the city walls, apparently setting up a siege without any warning.