Everything is okay thanks to @jackg that helped me for another time. I don't know what was wrong. I had edited the file with Notepad++, do you think that this is the reason the permissions changed?
HCP is correct about Notepad++ messing up Linux file permissions. There is a known bug in WSL that removes the Linux permission bits from files you edit in Windows editors.
Important Caveats
There are a few things to make sure you’re aware of when tinkering with the new metadata:
1. Editing a file using a Windows editor may remove the file’s Linux metadata. In this case, the file will revert to its default permissions
Default permissions is determined from the
umask in WSL. And the umask is applied to file whenever it's created or modified, 0022 by default, removing the write bit from group and other. It sounds like your umask is set to 0777, which strips all permissions from the file. Did you accidentally set it to 0777? Umask that doesn't remove any permissions should be 0000.
AFAIK, Notepad++ is Windows only... which likely means that you were editing it within the Windows environment. This will more than likely mess up the Linux file permissions. You're probably better off learning how to use "vi" or possibly "vim" (although I'm not sure if "vim" is supported under the Windows Subsystem for Linux/WSL), to prevent these issues from reoccurring.
I just tested and vim and vi both work. But if OP is having a problem with the umask, then a Linux editor will also strip the permissions.