Internal Affairs is the division of police organizations that polices the police. If there is any accusation of police corruption, Internal Affairs is the org that investigates. Therefore, cops look upon IAB as the "rat squad," because it's generally thought (among officers) that it's wrong for police to punish or investigate other police.