Question: why are rats associated with snitching?
Answer: Before calling someone a “rat” meant calling them an informant, it signified a drunkard, a cheating husband, or a pirate. It could also be used to label a deserter, in a reference to the animals' legendary tendency to flee collapsing houses and sinking ships.