This is actually pretty common. Maybe you are writing a book and your abandoned chapters were on GitHub for your editors to look at. Now that the book is published, you don’t want those chapters online. Maybe you are using an API and when you were developing a project had your app’s API connection keys available and not that the project is public you want to remove the file containing them.
When Git is keeping track of files, we say that it is
tracking files. Untracking files is not super difficult, but does, like all Git commands, require the command line.