Troops surrounded Gulliver because they saw him as a threat. They were afraid of his enormous size and unfamiliar appearance, so they wanted to protect themselves and their community. Gulliver's presence seemed unusual and potentially dangerous to them, so they took measures to ensure their safety.