It's almost certainly about being a nuisance to your neighbors. Roosters crow super obnoxiously. Like.. wow. If you've ever tried to sleep with one nearby you know what I'm talking about. Just handle that edge case (e.g. don't keep a rooster around) and NO ONE will care if you have chickens that don't bother anyone :) Especially if you're into sharing the eggs!