Probably because the file was originally broken and the path was wrong. I would exit the cmd shell, open a new one and retest with the corrected `path.bat`.
Note: It's not a good idea to name batch files with the same name as an existing command. I don't think it hurts this time (as path is an internal command) but imagine the batch file was called dir.bat and it called dir. What do you think would happen?