Look at https://github.com/microsoft/cups/commit/8100595a3a3a6d5c7d0... . This was done by an human.
Shame it slipped through the cracks, but at scale eventually something's going to no matter how hard you try.
* IANAL. Although Apache 2.0 and MIT are compatible, using a different license makes it awkward for changes to be merged upstream.