Because like any program it is already compiled and they only have the executable to run. In its current state it is a bunch of machine code. They would have to reverse engineer it which is basically impossible across an entire operating system.
Large parts of OSX userspace (Frameworks, daemons and pretty much all the system applications) and some of the kernel are closed source. Almost all of iOS is closed.