As do Windows and Linux. Just in case someone takes this as a serious argument in favor of Apple :)
Just to nitpick, on Linux it depends on your distribution (or yourself) having enabled zram; some modern distributions enable it by default on recent releases, but yours might not have.
You can run 'zramctl' to see the current status of the zram devices.