Is xar preinstalled on macOS? $ which xar
/usr/bin/xar


It's in /usr/bin. Does that mean it's preinstalled on mac?
Unless you've disabled SIP and installed your own binaries in /usr/bin it's safe to assume that everything in /usr/bin (and /bin, /sbin, /usr/sbin) is pre-installed.