Open source software was used for the basis of macOS for Apple’s convenience, not because Apple intended to publish very much open source software.
BSD has a convenient license for these purposes and it’s why proprietary commercial products like the PlayStation 5 choose to use it.