iPhone cameras aren't particularly great. They're good, but the thing that makes iPhone pictures really good is the iPhone's computational photography software. If webcams started including powerful CPUs, GPUs, AI chips, and OSs that can turn average pictures in to amazing pictures then webcams would be good. They'd also be quite a lot more expensive.
A webcam upgrading from a 50 cent ISP (Image Signal Processor) to a $2.00 one and a $3 lens instead of a $2 one (numbers based on conjecture from the average selling price of a low-end USB webcam) doesn't mean you need to build in a battery, a cellular antenna, a Wi-Fi radio, a desktop-grade CPU and GPU, give it a sturdy all-glass design and add speakers to it.