Water holds dissolved minerals, and what minerals and how many depend on what rocks it's in contact with.
In the Amazon, the rocks don't release minerals, and the hardness (mineral measure) of the water is very low. Since the kidneys of a fish work hard to keep water out, evolution tunes them to deal with the mineral content they live in. It is a question of water density, really, and of water purity.
In Mexico, I've caught mollies in water surrounded by limestone, a rock that constantly releases minerals. If you put a molly in Amazon (soft) water, its kidneys can't cope with the different pressure, and it gradually dies, often after neurological problems with shimmying (swimming in one spot but not going anywhere).
It's really important to do your homework and choose fish that thrive in the water you have. Where I live, the water comes from a series of forest lakes. if you dip a glass in the lake, the water before treatment is stained by tannins - from plants decomposing. It's clear after treatment, but the mineral content is very low, and my rainforest fish species love it.
Generally, the pH (if it's new, google it) is acid in soft water and alkaline in hard water. Water is very complicated stuff, and aquarists have to learn the simple basics to succeed longterm.