I disagree. I worked with plenty of AF Col's in the 5-sided-puzzle-palace that managed offices with 15-30 folks.
They worked alongside a GS-13 to GS-15 types.
Likewise just as D.C. has peculiar effects on the military rank of typical workers, so does it have peculiar effects on the civilian grade of workers, due to the position classification principle of "scope of effect".
But the Navy normally uses O5 to command ships of similar crew size. Very rarely, even O4... it all depends on what exactly the ship is, and what the expected mission set of that ship is.
Obviously the Navy wouldn't slot a random O4 into minesweeper command even though it's a small ship, so you're really talking about a "better than average" O4 even for those, it just reflects back to how scope of responsibility can change things even for the Navy.