Apple can touch it, they choose not to. They choose to make exclusively proprietary software.
Much of the operating system is proprietary, but I didn't think the kernel or HFS+ filesystem were included in that.
Also, btrfs is GPLv2. So that agrees with my point -- if they didn't mind using free software they could use that code.