I think sales people are often overpaid, and developers underpaid. After all, the people creating the value and maintaining the product are the ones that are truly "selling" it. The sales people are just pointing people's eyes at what dev makes.
Unfortunately this is consistently disproven in the market. Many technically better products do worse than competitors on the marketplace.
Marketing and sales has a significant impact on products' success. The average customer usually does not spend very much time evaluating alternatives based on technical merits.