Why might a ruler want to write laws
a ruler may want to write laws to set boundaries on what is considered right or wrong.