Chickens are much filthier than pigs, you should see what they eat and live in.
Neither are filthy if cared for properly. If they’re filthy it’s because they are owned by a lazy idiot who is clueless about space requirements, or is too greedy to care about space requirements.