They followed the state's interpretation of state law. 
After the court interpreted the law differently, the state changed the law to meet its intent and preclude similar lawsuits in the future.  
In the meantime, the whole exercise wasted a lot of time and money.
Why do you refuse to understand that?