Evidently they simply aren't respecting the .gitignore when choosing which file contents to post to their servers, https://forum.cursor.com/t/env-file-question/60165/9
Regardless of whether it actually makes a commit with the secret, it's still being leaked.