IBM's PC DOS (also marketed as MS-DOS by Microsoft) inherited the convention by virtue of being a clone of CP/M, and Windows inherited it from MS-DOS.
What was IBM's PC DOS marketed as by Microsoft?
MS-DOS