There is no need for users to enable/disable transparent compression in macOS as it's built into the file system.
In the pre-Mac OS X days there were a number of products that basically achieved the same thing. Disk Doubler was probably the most popular (because it started the trend), but other options included AutoDoubler and SuperDisk!
These products were very popular at the time (from memory, Disk Doubler was one of the most popular software packages sold for the Mac platform). However, the reason for their popularity was largely due to the small hard drive sizes of that era. As time went by the need (and popularity) for these packages waned significantly - mainly because the HFS+ file system was released in the late 1990s and this allowed much smaller block sizes and much larger disk capacities.
Over time Apple continually improved the HFS+ file system so that by the time Mac OS X 10.6 was launched it actually incorporated AppleFSCompression which is essentially the same feature you're referring to. Any software using Apple's APIs could take advantage of this, however at the time this was not enabled by default due to various reasons - users needed to use the Terminal to take advantage of it.
As time went by and software was updated, the use of Apple's compression technology became mainstream. With Mac OS X El Capitan (10.11) and iOS 9, Apple made further improvements by introducing a compression algorithm known as LZFSE into the operating system. This has since been adopted in watchOS and tvOS as well.
While the LZFSE algorithm is the fastest and most energy efficient option offered by Apple, it's not the only option available to developers. LZ4, LZMA and ZLIB are other options and there are various reasons why one may be chosen over another.
In summary, the operating system uses compression natively and, in the case of Apple and 3rd party software, developers have a number of options in terms of the compression algorithm they opt for. Regardless of the choice, compression is transparently taking place all the time and from a user's perspective there is nothing they need to do to take advantage of it.