Apple does the opposite by giving away their software and design “for free” and making up for it with hardware margins.
Not on Mac they don't. macOS isn't tied to the App Store in the same way that iOS devices are, and it probably accounts for a tiny percentage of third-party Mac software sales by value.