Apple for a time did license MacOS. They never had OS monopoly status, nor did they attach anti-competitive agreements to the licensing contracts. They also paid a lot to terminate the agreements early. This happened sometime shortly after Jobs return.

One company outright was bought by Apple, and the exec leading it went on to lead the hardware group for a while. Jon Rubinstein Is the person, I think Power Computing is the one Apple bought.