First: they're a domestic car manufacturer, lower cost to deliver to local drivers. Second: they're able to offer specific taxi options, such as manual front seat adjustment (vs automagic). Third: they offer a substantial discount to taxi drivers (they justify the discount through the marketing value of having large number of individuals ride in their cars).
Such discounts for marketing purposes is quite common in the industry. I've also heard dealerships sell cars to rental car companies at a loss, just to make sure customers have access to their cars (and will possibly consider buying that type of car for the next purchase).
The tax a private person has to pay to buy a car was 180% in 2015 so essentially a luxury car is nearly triple of what it might be in US, with a new S350 being $250k.
Thos taxi rules have changed recently however, so Mercedes may lose their 90% taxi market share.
Thanks for your clarification!