Triggerfish are called "fish" for the simple reason that they are, in fact, fish. They belong to the Balistidae family, a group distinguished by a unique trigger-like mechanism on their dorsal fins.
Just as a shark, a tuna, or a goldfish is a fish, a triggerfish falls squarely within the same broad category. "Fish" is a general term for aquatic vertebrates that breathe through gills and use fins to move through water.
Although triggerfish have distinctive features that earn them their specific name, they remain part of the larger family of fish.