In the 4 TV series, hundreds of hours of television - the multiple times characters have visited earth and in all the previous films and TV episodes when they visited earth - not once did we see any flag except the UFP.
So, it's simply adding new material to the Trek canon that former nation states keep their old vestiges.
Uhura is from the USA (United States of Africa), Chekov is from Russia, Scotty is from Scotland, Kirk is from Iowa, Picard is from France, Riker is from Alaska. . .so even though we may not have seen flags, nations and states still exist on Earth. . . and really, there aren't that many episodes where we visited civilian places on Earth, so you can't go by what was shown in them.