Not just size, but also diet. Fish that eat lots of greens (plecos, mollies, goldfish, etc) aren't able to actually digest all of the plant material (cellulose, i believe?) too efficiently and because of this they poop it a lot of it out. Predators, like oscars (and on a smaller scale puffers)...