Because the iPhone is a pretty expensive mass-produced camera with millions of dollars in development costs that a webcam would never have.
Even a highly-optimized “let’s steal a smartphone camera” webcam would never cost under $100, so it would sell extremely little.