The original quote was 'nobody has ever got rich betting against Steve Jobs'. The fact that at times Microsoft had close dealings with Apple does not stop the fact that their biggest bet of all - on the IBM-PC, commoditized hardware and the Windows OS itself - was quite clearly in competition with the Macintosh and Apple.
This was 'a bet against Steve Jobs', and it made Bill Gates (and many others) quite, quite rich.