DOS won because IBM PCs and PC compatibles won. Most of the popular earlier 8 bitters had a merged REPL that did both BASIC and 'operating system' interaction. So, for instance, on an Apple ][, the default prompt put you in the BASIC REPL from which you could also run the Apple DOS (later ProDOS, neither related to MS DOS) commands.