There is a myth in this hobby that fish can somehow magically adapt to water that is substantially different from their habitat. There are species that do have a relatively wide range, but most do not.
Each species of freshwater fish has evolved over thousands of years to function in a very specific environment; environment includes water parameters. The fish's physiology is designed to operate within this fairly limited range, and as soon as the fish is forced outside that range, it develops problems. Small-sized fish are much more sensitive to this than much larger fish, though it is still present. That is because the smaller the fish, the higher the metabolic rate, and this requires more energy. As soon as the fish is forced into spending energy trying to compensate for the wrong water, it weakens more and more, becomes more stressed, and always has a shorter than normal lifespan. It just cannot cope.
Water is continually entering the fish via osmosis through every cell, entering the bloodstream and internal organs. The evolution of the species dictates how the fish use or responds to this water, and it is critical to its health. The attached scans of an excerpt from the Manual of Fiish Health will illustrate why this is so important.