Gills are useful for:
breathing underwater
moving quickly in water
flapping fins
taking in dissolved oxygen and giving out carbon dioxide
Fishes have gills to breathe underwater. These gills allow them to absorb dissolved oxygen and filter out carbon dioxide.