Why do child medications have artificial flavors?

So they'll take it! Medicines often have a bitter taste and strong aftertaste. The flavors are to make them palatable. The products are tested very carefully and are known to be safe. Most products also come in a dye free version.
Medicine tastes bad. Medicine tastes nasty, really nasty. It has to be sweetened and "dealt with" to make it palatable. I've tasted some of these, and found it difficult not to make a scene in front of the family. Natural flavors are expensive, and may go bad after awhile. Plus, artificial flavors are just more powerful at covering the nasty taste. Unfortunately, it may just be a necessary evil for now.