Macs aren't walled gardens, you're free to install whatever you want, the default security requires that software be signed but does not require the use of the app store, and apple put a _lot_ of work into ensuring that Macs remained secure but could also have whatever non-tacos OS you might want.
I am not sure what more could be done to make a Mac not be a "walled garden".