Sometimes they can be, but in most cases, it is more a matter of people's perceptions. If you have ever spent any time around pigs, you know they enjoy wallowing in mud when hot but will avoid getting dirty if they can. But if they are kept in clean conditions and given regular baths, they can be just as clean as any other animal.