Nix shell and system libraries

Why doesn’t nix-shell see libraries installed in my system (apple sdk, xz, etc) even when it’s impure?

Because that’s not how nix (and therefore nixos) is structured, there is intentional avoidance of the global directory of libraries like /usr/lib.