People do not understand how much it costs to bring a product to market, 1000's of people worked on designing the S5, helping it achieve safety marks, different hardware revisions. Then there is there Android development team. Finally Profit.
I Would be interested to know the percentage markup per unit for each manufacturer!