If you become morbidly curious about details of this, you can look at module/os/linux/zfs/zpl_xattr.c in the openzfs repo on github. The top of the file contains a rather lengthy explanation of xattr implementation on ZFS.