It's not limited to Microsoft. Nvidia and AMD Windows drivers also do the same. Even mesa has a few lists of program-specific flags:
https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/src/uti...