In the game's files, any AI, such as NPCs, monsters, enemies, or even animals, are marked pretty much the same. Chickens are classified the same way inhabitants of towns and cities are, so if you kill a chicken, the game treats it the same as if you had killed a townsperson, and you get arrested for it.