That JPEG can be losslessly (bit-wise identical) transcoded to JPEG XL and back to JPEG, while the JPEG XL is smaller than the JPEG is bizarre to me. Does anyone know how that works?
Better entropy coding. TL;DR JPEG and other "lossy" compression formats are two steps: the lossy step and a lossless step like ZIP. You keep the lossy step as-is and improve the lossless step.