Because of it's formatting. You can't have any whitespaces or anything above <?php and below ?> in your php files.
Notepad seems to make issues with the whitespace in front of the file, even though it doesn't seem like it. If you try to open it with Wordpad or some other text editor, it should work.