Original: In this latter sense, the pilot fish is sometimes used as a metaphor or simile; "they are like the pilot fish to the shark, serving to lead him to his victim".
Simplified: Pilot fish follow sharks because other animals which might eat the pilot fish will not come near a shark.