These are aggregate metrics. As such, individuals may have seen their salaries stay the same or even go up, but if the employees at the top of the pay scale are removed (layed off, or even a simple selection bias in the dataset), the median will still drop.
Also wouldn't the dataset being from different number of people affect this? During 2021 probably much more people with higher pay self reported their pay on the website and 2022 just didn't see that much contribution?