These were existing MS-DOS programmes that had already shipped. They wouldn't have shipped with a Windows icon as they were made before that Windows version existed (or at least shipped) and weren't even intended to run on that platform. Once Windows had shipped, and software vendors started making software for it, they will of course have included their own icons. The "why" is simply Microsoft wanting to make Windows play nice with users' existing software, and thus enhancing the user experience.