Apple is entirely capable of doing the dumbest deals. A long time ago Apple owned a breakthrough (for its day) product called Apple Basic. It was multitasking, object oriented, and adaptable to GUIs like the one on the recently introduced Macintosh. A deal was cut with somebody named Gates and the code base for Apple Basic changed hands for a reported $5. Microsoft turned it into Visual Basic and it enabled Windows to dominate enterprise computing to this day. I doubt even Tim Cook can top that level of stupidity.