Most prescribed drugs are generics that will cost you a couple bucks. The drugs advertised on TV are precisely the ones with high margins that support expensive customer acquisition efforts.
Of course, there's the problem of when companies make a 'new' drug that is very similar to an existing drug/generic that already exists. A great example of that in my head is how Cymbalta is not that much different than Effexor.