For macOS Sonoma, Apple changed the Mac so that clicking on the desktop activates Expose and hides all your apps. Fortunately, you can stop it — albeit with a workaround.
The new macOS Sonoma’s default desktop wallpaper
The new macOS Sonoma’s default desktop wallpaper
We’re not going to use words like annoying, but you might. The first time you use macOS Sonoma and you click on the desktop, it is startling at least.
It’s meant to mean that you can get to your desktop instantly, and to and to any files or folders there. But you can’t get to any folders you have open, not without opening them again.
How to turn off macOS Sonoma’s click to reveal desktop
How to turn off macOS Sonoma’s click to reveal desktop