While we all like to complain about how the government sucks, the US government is effectively the largest, most complicated, most diverse corporation in the world. Of all the shit it does, most of it works OK, and some of it it does better than literally anyone else. Some of it is an absolute shitshow.
But on the whole? It actually works surprisingly well. We just don't think about all of the stuff that actually works properly, and it interfaces with more of our lives than any other entity. We just take life more-or-less working for granted.