Why are so many permits required for even simple changes or maintenance to your home?

I live in Washington, and they're requiring me to get a permit to replace a window? It's a simple swap with no structural or size opening changes, and the permit costs $50.