If the gov't was a tech company, the laws that have been created are a massive amount of technical debt that has been built up over a century and rarely has anyone ever gone back to prune bad laws.
There was a commission created to discover how many LAWS there were in the U.S.
Just basic LAWS that people and institutions have to follow(because ignorance of the law is no excuse)
And after years the final conclusion from this commission was that it was impossible to know how many laws there are.
You can google that.
A ton of what governments deal with are problems THEY CREATE THEMSELVES.