Why were laws written in Arabic?

Laws were written in Arabic because Arabic was the language of the ruling class and the legal scholars in many regions where Islamic civilization had a significant influence, such as the Middle East, North Africa, and parts of Europe. Additionally, Arabic was the language of the Quran, which played a significant role in shaping Islamic legal principles and practices. Writing laws in Arabic allowed for consistency and uniformity in legal texts and facilitated communication and understanding among legal scholars and practitioners.