Can you provide context such as what operating system you're using, and what application you are using to write/execute code? My best guess is that the file browser opening in one case is the code editor's file explorer built into the app.