Up until relatively recently, a lot of laptops and even phones would put the connectors on separate PCBs connected by a ribbon, so that damaging those wouldn't mean a $500 motherboard replacement.
I definitely remember ordering a replacement headphone socket board for an old MacBook and just putting it in myself, and I've done similar with, eg, the connector port board on a PS4 controller.
But I guess this is one of the hazards of Apple having their AppleCare programme— they can do the math and calculate that saving a dollar on the cost of making and mounting and connecting that extra component still makes them money even if they have to eat the occasional full motherboard in the first three years of ownership.