On the other hand Jesus was born and grew up jewish and would have been familiar with jewish dietary laws and the sacrifices in the temple and the complicated conditions for those.
In fact there's a historically grounded secular interpretation of the good samaritan parable indicating it's at least partially about exactly this. According to contemporaneous jewish moral norms, the priest in the parable has valid reason to avoid what he thinks is a dead body but only if he has a ritual duty to perform in temple in the near future. In the parable he is traveling "down from jersusalem" eg his duty is complete for now. Jesus is coming down against him maintaining ritual purity without a specific liturgical duty to.