`return process && (process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE));`
Here's is what's probably going on in the head of the people who require it:
"What does this do exactly? Why do I need to test against 'win32'? Should I also test against 'win64' or 'x64'? What if it changes later on? Do I need to keep track of Windows versions and then change all my apps? What if I write it without testing for 'cygwin' and someone else in the project do? Will the app only work partially on some hardware? What if some new OS comes out?"
Don't get me wrong, it's not perfect and is a security hole. But that's the reason it's done.