Presumably because 'dress code' involves practical garments and depending on occupation a headdress like a burqa or hijab may not be a practical garment.
As an example, I remember reading that some police departments were trying to develop a hijab that was appropriate for on-duty officers but they could never create one that wasn't just a choking opportunity waiting to be used.