Exporting AVIF and JPEG XL with gain map is currently an experimental feature (not fully tested or tuned). Therefore, it is not enabled by default. However, you may access this feature by holding the Shift key while clicking on the Save button in Camera Raw. (Be sure to press Shift before clicking the Save button.) Then the Save dialog will have a new checkbox in the Color Space section called "Embed HDR Gain Map."