One for-instance: taxes. Every jurisdiction (sometimes city, sometimes county, state, country) has rules that they, reasonably, expect to be followed. Not all of those rules were written by reasonable legislatures, and the aggregate code to handle all the cases tends to be large, complicated, and subject to revision.