Some antivirus programs expect the winexe .exe files to have a particular signature, and so this helps avoid building them when not required.
This bug was referenced in samba master: 9189bd9c9c126b8983781a8de075efc9fe7fdfa5