People didn't used to separate religious belief from how communities were governed; the idea of separate “civil” and “religious” law is a modern dichotomy. Historically, it was just the law of the community; sure, once that was forked into “civil” and “religious” law some places, the two sides of the fork have a lot in common.