The writers of Star Trek went above and beyond to make the universe as realistic as possible.
Section 31 takes place outside Federation space, but if the USS Enterprise had appeared, who would be the Captain?