Fish do die, sometimes quite suddenly, and it is not necessarily from any contagious disease or condition in the tank. Though the latter obviously has to be guarded against, but primarily by keen observation daily. Once you have a species for several months and then years, it is much easier to see an issue. More than once I have read a post from a member who was fearful their fish was "twitching" and thus must be sick, and all it turned out to be was natural interactive behaviours or even spawning preliminaries.
And secondly, resist at all times the urge to dump some "medicine" in the tank. In the majority of cases this does considerably more harm and may lead to a real issue and fish loss. Fish have a relationship with the water that is very different from that of any terrestrial animal with the air. "Air" is basically the same, and there is so much of it around that except in severe air pollution or sealed enclosed spaces the animals are not being impacted. But fish take in the water and their internal physiology will be governed largely by the chemistry of the water, and all medications or treatments entering the water column do impact on fish. Clean water that is appropriate in parameters to the species is still the best medicine, and a water change is my normal first response to any issue I see.
Byron.