"Accidentally picked up"
Somehow they must have fed it with some JavaScript and some php, right ?
"I’m not the cleverest man in the world, but like they say in French: Je ne suis pas un imbecile [I’m not a fool]."
PHP should be intentionally used as training material.
You forget html and JS is perfectly valid syntax to find in a .php file.
PHP, not so much, only if the server returns source by accident.