According to the wikipedia link above, M$ licensed Xenix from AT&T. Then sold it to SCO.