I also find the criticism Apple receives amusing, especially from people who use Windows.
I guess you don't know that macOS/iOS is open source, except for the graphical environment and applications such as Pages, etc.
The entire kernel and OS environment is open source.
Projects such as WebKit (Safari engine), Swift, CUPS, libdispatch (GCD), mDNSResponder (Bonjour), launchd, among others, are also open source and from Apple.
Not to mention the contributions that the BSD ecosystem receives thanks to Apple, among others:
- Clang/LLVM: Apple promoted Clang/LLVM and maintains it as an open project; FreeBSD adopted it as the default compiler since FreeBSD 10 (2014).
- LLDB and the modern STL: the LLDB debugger (part of LLVM) and libc++/libc++abi were born at Apple (initially led by Howard Hinnant) and are now widely used in BSD.
- Grand Central Dispatch (libdispatch): Apple opened libdispatch, its concurrency library; there is a cross-platform version also used in FreeBSD.
- Bonjour / mDNSResponder: Apple's multicast-DNS/DNS-SD daemon is open and has a port/manuals in FreeBSD.
- CUPS: Apple acquired it in 2007 and kept it open source, used by macOS and other Unix-like systems; today its development for Linux is led by OpenPrinting.
- Swift: Apple's language is open source; since Swift 6.2 Apple announced official support for FreeBSD, and SwiftPM already supports the FreeBSD platform.
- Security (TrustedBSD/OpenBSM): macOS integrates the TrustedBSD MAC Framework (the basis for sandboxing), and Apple released/relicensed parts of OpenBSM that were integrated into FreeBSD.
When will Microsoft do this?