There is no requirement to use the App Store on a Mac.
And yet those programs do not magically work on Windows or Linux because that's not how computers work. Developers have to specifically target and build their programs for the devices they wish to support.
And many apps (in particular SaaS ones) allow you to buy one license and use their program on whatever device they support. App Store doesn't stop you.