I agree with the above answers. I'm just going to give an example of my own to illustrate:
I started out with a 20g stocked with a glassfish, a
goldfish, a gourami, and three gold barbs. Over the next couple of months, I added a cory, a koi, and two otos. Everyone
seemed happy.
However, looking at the stock now, I'm horrified. First of all, the koi and the goldfish alone would need a tank that's a hundred or more gallons. The gourami was stunted (and eventually died due to
ammonia poisoning). The cory died of what I believe was loneliness-induced stress. The otos died of poor water quality. I now have the community in a much larger aquarium, and only one barb and one koi remain. The glassfish died of old age (likely), and two of the barbs died of poor
aquascaping. The koi and goldfish got their own tank (the goldfish died recently). But the rate of death slowed to a couple of fish a year, if that, rather than a fish a month. My fish are super active. Right now, the glassfish (I have a proper school of them) and some black neons I got are playing tag across the four feet of tank they have to play in.