I have often found that if the fish are not predators of each other they will swim together. I have a Six Line and he is always with my Pygmy Angel. They are quite a pair. They even sleep in the same rock. If there are no other fish of the same species in the tank then I have found most fish will "school" with another species. They just want to feel safe, a natural instinct. Hope this help out.
Tony