Original: The pilot fish's relationship with sharks is a mutualist one; the pilot fish gains protection from predators, while the shark gains freedom from parasites.
Simplified: In return, sharks do not eat pilot fish because pilot fish eat the parasites which feed off sharks. This is called a "mutualist" relationship.