A Python .pyd
file is just a DLL, which is just a Windows PE file. Windows PE files by convention start with a stub that prints that message if you run them in DOS:
https://en.wikipedia.org/wiki/Portable_Executable#History
Pretty much every Windows EXE and DLL file contains this header; it doesn't imply anything special.