That had to do with CP/M not being the standard/mainline OS for the IBM PC (and even then, CP/M was supported but released 6 months after DOS and for 6 times the price), it didn't have to do with IBM selecting Microsoft as their OS developer / vendor, especially since microsoft didn't even have an OS when they were selected.