Putting social fish alone in a tank will make them nervous. This causes stress and opens the door to disease and death.
Hence, when you buy fish, try to find about the social behaviour of the fish. Social fish should have a minimum of 4 members of the species in the tank.