Also Starfleet is the hypercompetent overachieving side of the Federation, and the show itself is aspirational to the core of its DNA, so this kind of biases the sample. It's not supposed to be us today, but rather what we could plausibly become as people (even subtracting the post-scarcity / scifi bits).