They swim together with other fish and clean their mouths and cavities of parasites. These small fish are responsible for cleaning and deworming other fish in coral areas.
They are real cleaning professionals and when one does the job well, they may even have a line of "customers" waiting for their turn.