My town has a similar ordinance.
I've got 14 hens and a rooster.
Our president rapes children. You wanna hassle me over a fucking rooster? Here's a dozen eggs, find someone who gives a shit.
The point of the ordinance is for Karen's to fuck with their immigrant neighbors. It's not enforced on white Americans like me. I'm fine. Karen can suck my cock.
That's 100% it, too. I know it comes across crass but that's the reality. Cops aren't going around auditing chickens or even listening for rooster crows. The only way this is enforced is by neighbor complaint, and only asshole neighbors would complain about shit like this, and IME most assholes are racist.