An evolutionary story
Suppose you had a population that consisted solely of toads (Bofu maincharacterus), frogs (*Rana budwieserous *) and ravenous hephalumps (Winnius poous). The haphalumps need to eat, and do so indiscriminately. Mmmmm…. Delicious!. One day, one of the toad’s genes for wart causing (let’s not go too far back in the story, just consider that the wart-juice-gland already exists) mutates, and now the wart juice is toxic to the hephalump. Does this do this toad any good? No, evolution doesn’t have any motivational force behind it, it is just a random mutation of genetic material. Along comes a hephalump and eats Mr. Toad, keels over and dies. Looks bad for both parties at this point. However, the hephalump ate the toad the day after he had a chance to pass on his genes to a brood of toadlets. Now there are several toads (not necessarily all of his brood, mind you, but some) with the propensity to produce toxic warts.
Suppose now, that in the population of hephalumps there are some that have a predilection towards toad-eating, some that are indifferent, and some that are frog-biased. For the moment, consider just the toad connoisseurs. They lumber (as hephalumps are wont to do) about the region in search of delicious toads. They go on gulping down toads until they come across a toxic toad - and so end their eating career. The one hephalump, by removing twenty ‘safe’ toads from the population, but only one poisonous toad, served to decrease the overall population of toads by 21 and change the ratio of toxic to non-toxic toads. Not only are the hephalumps helping to alter the ratio of toxicity to delectability, but the noxious toads never stop passing their genes on to new generations. Eventually (many, many, many generations later) palatable toads that are not eaten are in the minority, and face increasing odds of getting it on with a lethal toad, creating a new generation with the lethal gene.
Also keep in mind that the toads, frogs and hephalumps are all evolving in the same environment. Of the three groups of hephalumps, the ones that prefer toads will more and more finding themselves shuffling off this mortal coil, leaving the frog preferers and the diehard indifferents. And die the indifferents will, especially as the number of toxic toads increases. So you are left with a population of poisonous toads, frog preferring hephalumps, and market shills, who are soon to be hanging out with Bud McKensie.
Two last things just to consider. One is that the toxicity does not have to be deadly at first (or at all, for that matter). If the hephalump makes the connection between eating a toad and retching violently (ahh, our old friend conditioning!) it will learn to avoid toads and stick to frogs. Also, remember that species evolve together - this is why the cane toad was able to wreck havoc on Australian ecosystems (and make for a nice subtlety in a Simpsons episode). The indigenous population of birds and snakes had no idea that the toad was poisonous, ate them and died in great numbers.
I hope posters will keep in mind I am very much aware of my oversimplifications and gross generalizations, will keep the lambasting to a minimum. (Though lamb basting would be much appreciated. Haven’t had a good crown roast in a while.) I welcome, though, any corrections as needed. Hope this makes sense!
Rhythmdvl
PS Welcome to the SDMB Gordo. Great first question!