Traps can cause damage to the enemy army while defending the city; you can't dispatch them with your army units.