You might want to take things you "read online" with a grain of salt.
--------------------
MacBook Air (M2, 2022) - Tech Specs - Apple Support
MacBook Air (15-inch, M2, 2023) - Tech Specs - Apple Support
"Simultaneously supports full native resolution on the built-in display at 1 billion colors and:
- One external display with up to 6K resolution at 60Hz"
--------------------
Use an external display with your MacBook Air - Apple Support
If you go back to the "2023 – macOS Sonoma 14" version of this article, it says "Use a USB-C port to connect one external display with up to 6K resolution at 60 Hz." The M2 MacBook Airs came out in 2022 (13' models) and 2023 (15" models), and this older version of the Support article explicitly refers to M1 and M2 MacBook Airs.
All newer versions of the article that mention higher refresh rates refer to MacBook Airs that have M3 or M4 chips – and appear to be referring to the capabilities of MacBook Airs with those chips. Chips your Mac doesn't have.