Shortly thereafter the market was inundated with white box PCs. This change reduced the margins on PCs to such an extent that it remade the PC market again. The rise of Dell was part of this process. The only way to beat the local white box supplier was to have superior supply chain logistics which is what Dell brought to the market. By this time, the requirement for compatible hardware was so ingrained there wasn't even a discussion if it was possible to go off on your own--unless your name was Apple.
Or do you mean like OEMs creating complete computers that wouldn't take processors or expansion cards or peripherals from anyone but the OEM (via some sort of authorization system?)? From my memory of building back in those days, that'd have been a bad move. You'd get a rep for being incompatible and people would have less incentive to buy your system.
Because markets have momentum. When a hundred thousand people have IBM compatible PCs, making your part IBM compatible opens the door to an already-established customer base.
In simple terms, why does nearly every accessory interface via USB these days? Because just about everyone has a USB-compatible computer.
As for why everyone stayed compatible with each other... I have no idea.