I’m not sure where you’re getting your numbers from. Assuming by “poorer” you mean nominal GDP, Germany would be the richest state in the US.
[0] https://www.macrotrends.net/countries/DEU/germany/gdp-per-ca...
[1] https://en.wikipedia.org/wiki/List_of_states_and_territories...
https://en.wikipedia.org/wiki/List_of_U.S._states_and_territ...
But beyond that, my thought is that although you probably have fewer super rich people in DC, you also have way fewer poor people. So the average is going to be higher than even SV.
Plus, the types of jobs in DC proper (so we’re not talking about the extended Maryland and Virginia suburbs) are almost entirely professional/government. It’s also a very expensive place to live.