Jon Henshaw, writing for Coywolf:
WebKit added support for the AVIF image format in April 2021, but it’s still unavailable in Safari. Its absence is because Apple chose an unconventional method for decoding images in its browser.
Long story short: Safari does not decode images using WebKit — its underlying rendering engine — but delegates that task to macOS/iOS. Therefore it only supports the image formats the OS supports.