The reason is that you have already submitted and included README.md into the project before adding .gitignore (or adding README.md to the file). Git will keep tracking this file in the future.
If you change to ignore files ending in .md in .gitignore and submit, then create a new md file, it will definitely not be tracked.
[Without changing the .gitignore file] To solve this problem, execute the first step below, and then submit. The README.md file will not be tracked in the future.