if ich can divide thousands of times in an aquariums, wouldn't their by millions of them in an open body of water
No, there are not millions of them.
Their prey is so far apart that millions of Ich die in the wild because they cannot find a host.
Of those that do find a host, for example a lucky hatch of Ich where a school of fish are resting, there are hundreds of fish, so each fish might only get one or two Ich parasites. This is quite a tolerable parasite load for the fish.
----------------------------------------------------------------------------------------------------------------
Clown Loaches do not live "Between brackish and fresh waters".
They live in fresh waters.
---------------------------------------------------------------------------------------------------------------
Many fish do travel upstream, and down. The most obvious example is Salmon. They are born in pure fresh water. They live for a while in the stream or lake, then travel downstream. Most of the trip is in fresh water. The last bit of 'downstream' is brackish. Then they are out in the ocean. They live for a while in the ocean, then return through the brackish water to the fresh to spawn.
Clown Loaches do not do anything like this. They may travel within their river, but they do not go out to sea. They do not go downstream far enough to enter brackish water.
There are quite a few other species of fish that are kept in aquariums that do thrive in brackish water.
Some are quite adaptable, moving up and downstream into fresher or saltier water, even out to sea. Others follow the tide in and out so stay in a fairly constant salt level. When you keep brackish water fish you do some research to figure out the optimum salt and mineral level for the fish. Some brackish water fish are born in fresh then mature in the sea. When you keep these fish you will adjust the salt level of their aquarium over time to replicate their life cycle in the wild.