You only need it for iOS/ iPadOS/ watchOS development.
You can make a macOS app without a developer license, and just distribute it yourself (outside the Mac App Store). But the iOS app store is the only way users can get iOS apps, so you need to be on the apple developer program