This complies with a state requirement and helps visitors know that information from spanishfork.gov web pages and email addresses ending in @spanishfork.gov are officially from the city. You likely have seen or will see other Utah cities follow suit.
Eventually, the city plans on changing all .org domains to .gov. For the foreseeable future, spanishfork.org domains will still work and/or forward to the city's new domains.