Mice are dirty, but wiping your ass with your bare hands and marrying your first cousin and nieces: definitely not dirty!
Or if you have sex with your donkey it is unclean to eat but it’s ok to sell it to someone in another town to eat.