But Windows is the product. Hardware is a small part of their revenue, and most of their install base is hardware that isn’t theirs.
MacOS is also part of Apple’s product, but they pretty much only sell higher margin premium hardware that both pays for and streamlines the OS development process.