Most likely because most of the difference is in the Qualcomm DSP attached to your phones SoC, not the actual camera module. The mobile phone images contain a lot of postprocessing which the webcams don't do.
But you produce in lower quantities so your development cost makes up a larger slice of the pie, as well as other fixed costs deeper into your supply chain.