RotaraMac help
Why does your Mac keep switching desktops?
Because the app you asked for already has a window on another desktop. When you switch to an app with ⌘ Tab, the Dock or Spotlight, macOS takes you to a desktop that has its windows. It's a setting, on by default, and you can turn it off.