Governments regulate all sorts of features on all sorts of products: building codes, electrical codes, car mpg requirements, how planes work, tax requirements, how corporations are allowed to function, the rights of citizens, ...
Why should software get a free pass?