Obviously you never had animals?
Chickens poop all over the place.
People clean up the poop.
Other animals the same.
One example of how, if the animal has an infectious agent that can affect humans, people could get in contact with that infectious agent.
If a respiratory agent - changing the chickens water, that they have drank and sneezed in.
Lots of other ways.